Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PhilipRoman opened this issue Mar 31, 2020 · 0 comments

Comments

@PhilipRoman
Copy link

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 fa72b79

bash --version
GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant