From d036c431303faec4b3499527eaa60c9ddd75d2a3 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Thu, 4 Aug 2011 10:38:53 +0200 Subject: [PATCH] Play: factorize code --- _play | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/_play b/_play index dffe689..0dc8dda 100644 --- a/_play +++ b/_play @@ -60,12 +60,6 @@ _play() { (build-module|list-modules|lm|check|id) _message 'no more arguments' && ret=0 ;; - (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' \ @@ -100,7 +94,7 @@ _play() { (new-module) _arguments '1:Module directory:_files -/' && ret=0 ;; - (test|precompile|run|start|war) + (test|precompile|run|start|war|auto-test|classpath|cp|eclipsify|ec|idealize|idea|modules|netbeansify|nb) local cmd_args; cmd_args=( '1:: :_play_apps' '(--deps)--deps[Resolve and install dependencies before running the command]'