gradle-completion icon indicating copy to clipboard operation
gradle-completion copied to clipboard

Arguments completion for standard tasks

Open gildor opened this issue 7 years ago • 4 comments

Now completion doesn't for arguments of tasks. For example, default task wrapper has arguments --gradle-version and --distribution-type, but autocompletion doesn't work for them. Maybe it's a bigger problem: how to pass parameters to task using cli arguments without -D and -P and still be discoverable by a user, but anyway, standard tasks should have own argument completion lists.

gildor avatar Jun 23 '17 08:06 gildor

Which shell are you using?

eriwen avatar Jun 23 '17 14:06 eriwen

Bash, Mac OS, Gradle 4.0

gildor avatar Jun 23 '17 17:06 gildor

This is unimplemented only for Bash. Zsh completion works fine.

pkubowicz avatar Oct 25 '17 19:10 pkubowicz

:+1: (+1)

$ gradle -q help --task test
Detailed task information for test

Path
     :fleet-batch:test

Type
     Test (org.gradle.api.tasks.testing.Test)

Options
     --debug-jvm     Enable debugging for the test process. The process is started suspended and listening on port 5005.

     --fail-fast     Stops test execution after the first failed test.

     --tests     Sets test class or method name to be included, '*' is supported.

Description
     Runs the unit tests.

Group
     verification
$ gradle test<TAB>
testClasses  - Assembles test classes.  test  - Runs the unit tests.            
$ gradle test<BLANK><TAB>
Display all 503 possibilities? (y or n)
$ # I was specting to see:
$ --debug-jvm | --fail-fast | --tests
$ bash --version | head -n 1
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

juarezr avatar Jan 06 '21 17:01 juarezr