A CLI for Play-Framework apps
Java Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
dist
doc/img
lib
src
.gitignore
README.textile
build.xml
commands.py

README.textile

play-shell

A fun-side-project of mine turned out to be a CLI for Play-Framework apps based on the Groovysh.

Lets say you have a model called Team:

@Entity
public class Team extends Model {
	public String name;
}

The play-shell lets you interact with your models just like in regular play code:

Usage

1. Clone the repo

git clone git://github.com/grandfatha/play-shell.git

2. Add the module-dependency to your app, e.g., add the following to your dependencies.yml file

require:
    - play
    - play-shell -> play-shell
repositories: 
    - local-modules: 
        type: local 
        artifact: <absolute-path-to-your-cloned-git-repo>/[module] 
        contains: 
            - play-shell

3. Point your Terminal to your app and run ‘play shell’
4. Have fun!
5. Type ‘exit’ to finish