about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-01-29 19:32:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-01-29 19:32:22 +0000
commitf90cb992085a4a75d6292582d847a2c702845e40 (patch)
tree5f14994088caa2f5cfd49cd599ffac9eff463853
parent543be645a9f174bcc2ba08b7801ac69e1c617abf (diff)
downloadzsh-f90cb992085a4a75d6292582d847a2c702845e40.tar.gz
zsh-f90cb992085a4a75d6292582d847a2c702845e40.tar.xz
zsh-f90cb992085a4a75d6292582d847a2c702845e40.zip
Jesper Nygårds: 31012: gradle completion update
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_gradle16
2 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b4584a9c..9266785a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-01-29  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* Jesper Nygårds: 31012: Completion/Unix/Command/_gradle:
+	updates.
+
 	* Dmitry Roshchin: 31008: Completion/openSUSE/Command/_zypper,
 	Completion/openSUSE/Command/_osc: updates.
 
@@ -476,5 +479,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5791 $
+* $Revision: 1.5792 $
 *****************************************************
diff --git a/Completion/Unix/Command/_gradle b/Completion/Unix/Command/_gradle
index bc5aed0cd..9a75daefb 100644
--- a/Completion/Unix/Command/_gradle
+++ b/Completion/Unix/Command/_gradle
@@ -24,7 +24,7 @@ zstyle -a ":completion:*:*:$service:*" tag-order tag_order || \
 zstyle -T ":completion:*:*:$service:*" gradle-inspect || gradle_inspect=no
 
 _arguments -C \
-    '(-)'{-\?,-h,--help}'[Shows this help message.]' \
+    '(-)'{-\?,-h,--help}'[Shows a help message.]' \
     {-a,--no-rebuild}'[Do not rebuild project dependencies.]' \
     {-b,--build-file}'[Specifies the build file.]:build file:_files -g "*.gradle(-.)"' \
     {-C,--cache}'[Specifies how compiled build scripts should be cached.]:cache policy:(on rebuild)' \
@@ -45,12 +45,17 @@ _arguments -C \
     '--offline[The build should operate without accessing network resources.]' \
     \*{-P+,--project-prop}'[Set project property for the build script (e.g. -Pmyprop=myvalue).]:project property (prop=val):' \
     {-p,--project-dir}'[Specifies the start directory for Gradle.]:start directory:_directories' \
+    '--parallel[Build projects in parallel. Gradle will attempt to determine the optimal number of executor threads to use.]' \
+    '--parallel-threads[Build projects in parallel, using the specified number of executor threads.]' \
     '--profile[Profiles build execution time and generates a report in the <build_dir>/reports/profile directory.]' \
     '--project-cache-dir[Specifies the project-specific cache directory.]:cache directory:_directories' \
     '(-d --debug -i --info)'{-q,--quiet}'[Log errors only.]' \
-    "--refresh[Refresh the state of resources of the type(s) specified.]:refresh policy:(dependencies)" \
-    '(-s --stacktrace)'{-S,--full-stacktrace}'[Print out the full (very verbose) stacktrace for all exceptions.]' \
+    '--recompile-scripts[Force build script recompiling.]' \
+    '--refresh[Refresh the state of resources of the type(s) specified.]:refresh policy:(dependencies)' \
+    '--refresh-dependencies[Refresh the state of dependencies.]' \
+    '--rerun-tasks[Ignore previously cached task results.]' \
     '(-S --full-stacktrace)'{-s,--stacktrace}'[Print out the stacktrace for all exceptions.]' \
+    '(-s --stacktrace)'{-S,--full-stacktrace}'[Print out the full (very verbose) stacktrace for all exceptions.]' \
     '(-)--stop[Stops the Gradle daemon if it is running.]' \
     {-u,--no-search-upward}"[Don't search in parent folders for a settings.gradle file.]" \
     '(-)'{-v,--version}'[Print version info.]' \
@@ -58,7 +63,7 @@ _arguments -C \
     '*:task:->task' \
     && ret=0
 
-if [[ -n $state ]]; then
+if [[ $words[CURRENT] != -* ]]; then
     if [[ $gradle_inspect == yes ]]; then
         # If a build file is specified after '-b' or '--build-file', use this file. Otherwise,
         # default is the file 'build.gradle' in the current directory.
@@ -102,7 +107,8 @@ if [[ -n $state ]]; then
         fi
     else
         _describe 'built-in tasks' '(
-            "dependencies:Displays the dependencies of root project."
+            "dependencies:Displays all dependencies declared in root project."
+            "dependencyInsight:Displays the insight into a specific dependency in root project."
             "help:Displays a help message."
             "projects:Displays the sub-projects of root project."
             "properties:Displays the properties of root project."