Improve completion for help task.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Feb 2017 11:14:13 +0200
changeset 829 ccd4c8b35330
parent 828 235bf6715fc6
child 830 1b48fa26b52c
Improve completion for help task.
.bash_completion.d/gradle
--- a/.bash_completion.d/gradle	Mon Feb 13 22:09:01 2017 +0200
+++ b/.bash_completion.d/gradle	Sat Feb 18 11:14:13 2017 +0200
@@ -21,6 +21,12 @@
     -g|--gradle-user-home|-p|--project-dir|--project-cache-dir)
       COMPREPLY=( $(compgen -d -- "$cur") )
       return ;;
+    help)
+      COMPREPLY=( $(compgen -W "--task" -- "$cur") )
+      return ;;
+    --task)
+      COMPREPLY=( $(compgen -W '$_help_cmds $_java_cmds $_application_cmds $_other_cmd'  -- $cur) )
+      return ;;
   esac
   # colonprefixes=${cur%"${cur##*:}"}
   COMPREPLY=( $(compgen -W '$_opts $_help_cmds $_java_cmds $_application_cmds $_other_cmd'  -- $cur) )