Merge 91195d93d0
into 3ef5bd8e36
This commit is contained in:
commit
f0b763c616
25
_play
25
_play
|
@ -60,11 +60,26 @@ _play() {
|
|||
(build-module|list-modules|lm|check|id)
|
||||
_message 'no more arguments' && ret=0
|
||||
;;
|
||||
(auto-test|classpath|cp|clean|eclipsify|ec|idealize|idea|javadoc|jd|modules|netbeansify|nb|out|pid|secret|stop)
|
||||
(auto-test|classpath|cp|eclipsify|ec|idealize|idea|modules|netbeansify|nb)
|
||||
_arguments \
|
||||
'1:: :_play_apps' \
|
||||
'(--deps)--deps[Resolve and install dependencies before running the command]' \
|
||||
&& ret=0
|
||||
;;
|
||||
(dependencies|deps)
|
||||
_arguments \
|
||||
'1:: :_play_apps' \
|
||||
'(--debug)--debug[Debug mode (even more informations logged than in verbose mode)]' \
|
||||
'(--jpda)--jpda[Listen for JPDA connection. The process will suspended until a client is plugged to the JPDA port.]' \
|
||||
'(--sync)--sync[Keep lib/ and modules/ directory synced. Delete unknow dependencies.]' \
|
||||
'(--verbose)--verbose[Verbose Mode]' \
|
||||
&& ret=0
|
||||
;;
|
||||
(clean|javadoc|jd|out|pid|secret|stop)
|
||||
_arguments '1:: :_play_apps' && ret=0
|
||||
;;
|
||||
(help)
|
||||
_arguments '1: :_play_cmds -F "(cp ec idea jd st lm nb nm help)"' && ret=0
|
||||
_arguments '1: :_play_cmds -F "(cp deps ec idea jd st lm nb nm help)"' && ret=0
|
||||
;;
|
||||
(status|st)
|
||||
_arguments \
|
||||
|
@ -125,12 +140,18 @@ _play() {
|
|||
# FIXME Parse 'play help' and 'play help <command>' (for aliases) instead of hard-coding.
|
||||
_play_cmds() {
|
||||
local commands; commands=(
|
||||
'antify:Create a build.xml file for this project'
|
||||
'auto-test:Automatically run all application tests'
|
||||
'build-module:Build and package a module'
|
||||
'check:Check for a release newer than the current one'
|
||||
{classpath,cp}':Display the computed classpath'
|
||||
'clean:Delete temporary files (including the bytecode cache)'
|
||||
{dependencies,deps}':Resolve and retrieve project dependencies'
|
||||
{eclipsify,ec}':Create all Eclipse configuration files'
|
||||
'evolutions:Run the evolution check'
|
||||
'evolutions\:apply:Automatically apply pending evolutions'
|
||||
'evolutions\:mark:AppliedMark pending evolutions as manually applied'
|
||||
'evolutions\:resolve:Resolve partially applied evolution'
|
||||
'help:Display help on a specific command'
|
||||
'id:Define the framework ID'
|
||||
{idealize,idea}':Create all IntelliJ Idea configuration files'
|
||||
|
|
Loading…
Reference in New Issue