Add some gradle tasks.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 13 Feb 2017 17:11:40 +0200
changeset 827 4bd348e3422d
parent 826 54d42c57cc4d
child 828 235bf6715fc6
Add some gradle tasks.
.bash_completion.d/gradle
--- a/.bash_completion.d/gradle	Mon Feb 13 14:21:51 2017 +0200
+++ b/.bash_completion.d/gradle	Mon Feb 13 17:11:40 2017 +0200
@@ -7,9 +7,10 @@
      -q --quiet -r --properties -s --stacktrace -t --tasks -u --no-search-upward -v --version -x --exclude-task \
      --continue --daemon --foreground --no-color --no-daemon --offline --parallel --parallel-threads --project-cache-dir --recompile-scripts --refresh --refresh-dependencies \
      --rerun-tasks --stop"
-  local _help_cmds='dependencies dependencyInsight help projects properties tasks'
+  local _help_cmds='components dependencies dependencyInsight buildEnvironment help model projects properties tasks'
   local _java_cmds='assemble build buildDependents buildNeeded classes compileJava processResources clean cleanTest jar testClasses compileTestJava processTestResources javadoc check test uploadArchives'
   local _application_cmds='run startScripts installApp distZip distTar'
+  local _other_cmd='install interactive'
   local cur prev
   cur=${COMP_WORDS[COMP_CWORD]}
   [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]}
@@ -22,7 +23,7 @@
       return ;;
   esac
   # colonprefixes=${cur%"${cur##*:}"}
-  COMPREPLY=( $(compgen -W '$_opts $_help_cmds $_java_cmds $_application_cmds'  -- $cur) )
+  COMPREPLY=( $(compgen -W '$_opts $_help_cmds $_java_cmds $_application_cmds $_other_cmd'  -- $cur) )
   # local i=${#COMPREPLY[*]}
   # while [ $((--i)) -ge 0 ]; do
   #    COMPREPLY[$i]=${COMPREPLY[$i]#"$colonprefixes"}