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

When using bash menu-complete, completion includes task description, resulting in incorrect command

Open PhilipRoman opened this issue 5 years ago • 0 comments

When Tab key is bound to menu-complete, the following happens:

/root/java/jws-998> gradle [TAB]
assemble  - Assembles the outputs of this project.
assembleDist  - Assembles the main distributions
assembleShadowDist  - Assembles the shadow distributions
build  - Assembles and tests this project.
buildDependents  - Assembles and tests this project and all projects that depend on it.
buildEnvironment  - Displays all buildscript dependencies declared in root project jws-998.
...
/root/java/jws-998> gradle assemble  - Assembles the outputs of this project.

As you can see, the task description is included in the command I'm typing, which obviously results in an error because Task '-' not found in root project 'jws-998'. This means that in order to use Gradle completion, I have to delete the description manually, which makes it very inefficient.

If it isn't possible to fix this, is there at least a way to disable task descriptions?

Software versions and configuration

Gradle completion version: commit fa72b796a68

bash --version
GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)

PhilipRoman avatar Mar 31 '20 09:03 PhilipRoman