From 27f042fc7082e7069b724411bac2dc7c6a22b4b6 Mon Sep 17 00:00:00 2001 From: Mario Fernandez Date: Wed, 3 Aug 2011 22:00:46 +0200 Subject: [PATCH 1/3] complete list of commands --- _play | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_play b/_play index a4942b2..2f04cae 100644 --- a/_play +++ b/_play @@ -64,7 +64,7 @@ _play() { _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 +125,18 @@ _play() { # FIXME Parse 'play help' and 'play help ' (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' From a0f3e1dcccc53f8bb63c535d6a3b67b952df79a7 Mon Sep 17 00:00:00 2001 From: Mario Fernandez Date: Wed, 3 Aug 2011 22:26:06 +0200 Subject: [PATCH 2/3] add --deps argument --- _play | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/_play b/_play index 2f04cae..b55cd67 100644 --- a/_play +++ b/_play @@ -60,7 +60,13 @@ _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 + ;; + (clean|javadoc|jd|out|pid|secret|stop) _arguments '1:: :_play_apps' && ret=0 ;; (help) From 91195d93d0553ca56e560935e233ad177ae9ee7d Mon Sep 17 00:00:00 2001 From: Mario Fernandez Date: Wed, 3 Aug 2011 22:29:47 +0200 Subject: [PATCH 3/3] add arguments for dependencies --- _play | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_play b/_play index b55cd67..dffe689 100644 --- a/_play +++ b/_play @@ -66,6 +66,15 @@ _play() { '(--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 ;;