gradle-completion
gradle-completion copied to clipboard
Arguments completion for standard tasks
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.
Which shell are you using?
Bash, Mac OS, Gradle 4.0
This is unimplemented only for Bash. Zsh completion works fine.
:+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)