# HG changeset patch # User Oleksandr Gavenko # Date 1487676662 -7200 # Node ID b2e3e02b92594ebaaf77e09a7752944e6eb2467f # Parent 31202b6727178ed5f7a4151f1258cc9888cb133a Completion for "dependencies --configuration". diff -r 31202b672717 -r b2e3e02b9259 .bash_completion.d/gradle --- a/.bash_completion.d/gradle Tue Feb 21 10:06:40 2017 +0200 +++ b/.bash_completion.d/gradle Tue Feb 21 13:31:02 2017 +0200 @@ -27,6 +27,28 @@ wrapper) COMPREPLY=( $(compgen -W "--gradle-version" -- "$cur") ) return ;; + dependencies) + COMPREPLY=( $(compgen -W "--configuration" -- "$cur") ) + return ;; + --configuration) + local _configs="archives - Configuration for archive artifacts. +compile - Compile time dependencies. +compileClasspath - Compile classpath, used when compiling source. +compileOnly - Compile time only dependencies, not used at runtime. +default - Dependencies required by this project at runtime. +optional - +provided - +runtime - Runtime dependencies for source set 'main'. +testCompile - Dependencies for source set 'test'. +testCompileClasspath - Compile classpath for source set 'test'. +testCompileOnly - Compile dependencies for source set 'test'. +testRuntime - Runtime dependencies for source set 'test'." + local IFS=$'\n' + COMPREPLY=( $(compgen -W '${_configs}' -- "$cur") ) + if [[ ${#COMPREPLY[@]} -le 1 ]]; then + COMPREPLY=( ${COMPREPLY[0]%% *-*} ) + fi + return ;; --task) COMPREPLY=( $(compgen -W '$_help_cmds $_java_cmds $_application_cmds $_other_cmd' -- $cur) ) return ;;