.bash_completion.d/gradle
changeset 835 b2e3e02b9259
parent 833 490674629971
child 839 e22ea617339d
equal deleted inserted replaced
834:31202b672717 835:b2e3e02b9259
    25       COMPREPLY=( $(compgen -W "--task" -- "$cur") )
    25       COMPREPLY=( $(compgen -W "--task" -- "$cur") )
    26       return ;;
    26       return ;;
    27     wrapper)
    27     wrapper)
    28       COMPREPLY=( $(compgen -W "--gradle-version" -- "$cur") )
    28       COMPREPLY=( $(compgen -W "--gradle-version" -- "$cur") )
    29       return ;;
    29       return ;;
       
    30     dependencies)
       
    31       COMPREPLY=( $(compgen -W "--configuration" -- "$cur") )
       
    32       return ;;
       
    33     --configuration)
       
    34       local _configs="archives              - Configuration for archive artifacts.
       
    35 compile               - Compile time dependencies.
       
    36 compileClasspath      - Compile classpath, used when compiling source.
       
    37 compileOnly           - Compile time only dependencies, not used at runtime.
       
    38 default               - Dependencies required by this project at runtime.
       
    39 optional              -
       
    40 provided              -
       
    41 runtime               - Runtime dependencies for source set 'main'.
       
    42 testCompile           - Dependencies for source set 'test'.
       
    43 testCompileClasspath  - Compile classpath for source set 'test'.
       
    44 testCompileOnly       - Compile dependencies for source set 'test'.
       
    45 testRuntime           - Runtime dependencies for source set 'test'."
       
    46       local IFS=$'\n'
       
    47       COMPREPLY=( $(compgen -W '${_configs}' -- "$cur") )
       
    48       if [[ ${#COMPREPLY[@]} -le 1 ]]; then
       
    49           COMPREPLY=( ${COMPREPLY[0]%% *-*} )
       
    50       fi
       
    51       return ;;
    30     --task)
    52     --task)
    31       COMPREPLY=( $(compgen -W '$_help_cmds $_java_cmds $_application_cmds $_other_cmd'  -- $cur) )
    53       COMPREPLY=( $(compgen -W '$_help_cmds $_java_cmds $_application_cmds $_other_cmd'  -- $cur) )
    32       return ;;
    54       return ;;
    33   esac
    55   esac
    34   # colonprefixes=${cur%"${cur##*:}"}
    56   # colonprefixes=${cur%"${cur##*:}"}