.bash_completion.d/gradle
changeset 893 3cb881498907
parent 867 33ef236a0dd5
child 907 e8259d7d8e3a
equal deleted inserted replaced
892:5bb386e5dbf6 893:3cb881498907
    16 {
    16 {
    17   local OIFS=$IFS
    17   local OIFS=$IFS
    18   local _opts="-? -h --help -A --dep-tasks -C --cache -D --system-prop -I --init-script -P --project-prop -S --full-stacktrace -a --no-rebuild --all \
    18   local _opts="-? -h --help -A --dep-tasks -C --cache -D --system-prop -I --init-script -P --project-prop -S --full-stacktrace -a --no-rebuild --all \
    19      -b --build-file -c --settings-file -d --debug -e --embedded -g --gradle-user-home --gui -i --info -m --dry-run --no-opt -p --project-dir \
    19      -b --build-file -c --settings-file -d --debug -e --embedded -g --gradle-user-home --gui -i --info -m --dry-run --no-opt -p --project-dir \
    20      -q --quiet -r --properties -s --stacktrace -t --tasks -u --no-search-upward -v --version -x --exclude-task \
    20      -q --quiet -r --properties -s --stacktrace -t --tasks -u --no-search-upward -v --version -x --exclude-task \
    21      --continue --foreground --no-color --project-cache-dir --recompile-scripts --refresh --refresh-dependencies \
    21      --continue --foreground --no-color --project-cache-dir --include-build --recompile-scripts --refresh --refresh-dependencies \
    22       --daemon --no-daemon --offline --build-cache --parallel --parallel-threads --profile --status \
    22       --daemon --no-daemon --offline --build-cache --parallel --parallel-threads --profile --status \
    23      --rerun-tasks --stop"
    23      --rerun-tasks --stop"
    24   local _application_cmds='run startScripts installApp distZip distTar'
    24   local _application_cmds='run startScripts installApp distZip distTar'
    25   declare -a _extra
    25   declare -a _extra
    26   local cur prev
    26   local cur prev
   165   # Perform generic completion.
   165   # Perform generic completion.
   166   case "$prev" in
   166   case "$prev" in
   167     -I|--init-script|-b|--build-file|-c|--settings-file|-e|--embedded)
   167     -I|--init-script|-b|--build-file|-c|--settings-file|-e|--embedded)
   168       COMPREPLY=( $(compgen -f -- "$cur") )
   168       COMPREPLY=( $(compgen -f -- "$cur") )
   169       IFS=$OIFS; return ;;
   169       IFS=$OIFS; return ;;
   170     -g|--gradle-user-home|-p|--project-dir|--project-cache-dir)
   170     -g|--gradle-user-home|-p|--project-dir|--project-cache-dir|--include-build)
   171       COMPREPLY=( $(compgen -d -- "$cur") )
   171       COMPREPLY=( $(compgen -d -- "$cur") )
   172       IFS=$OIFS; return ;;
   172       IFS=$OIFS; return ;;
   173   esac
   173   esac
   174   local _repl=( ${_extra[@]} ${_tasks[@]} $_application_cmds )
   174   local _repl=( ${_extra[@]} ${_tasks[@]} $_application_cmds )
   175   COMPREPLY=( $(compgen -W '${_repl[@]} $_opts' -- $cur) )
   175   COMPREPLY=( $(compgen -W '${_repl[@]} $_opts' -- $cur) )