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

Bash completion support #5

Open
jjlauer opened this issue Sep 28, 2016 · 1 comment
Open

Bash completion support #5

jjlauer opened this issue Sep 28, 2016 · 1 comment

Comments

@jjlauer
Copy link
Member

jjlauer commented Sep 28, 2016

Support for bash completion of known tasks for a script would be incredibly useful and user-friendly. May require deeper integration with a terminal.

@agentgt
Copy link

agentgt commented Nov 21, 2017

I have been using GNU Make for some time now for project build aliases particular for Maven. Even with the new .mvn directory (jvm.config and maven.config). The only reason I use GNU Make is because it has builtin bash completion that I don't have to have someone go and install.

But GNU Make is not ideal for a variety of reasons one of which it does not provide automatic help of targets (ant does (ant -h IIRC) and I believe gradle and maven do as well) as well as no true multiple argument support (to do it requires some nasty hack that doesn't support completion).

Anyway I think the best way to accomplish this is to have two options:

  1. One a true bash completion that requires installation on the users part
  2. Interactive mode via JLine which will allow other platforms to work but requires you to first run the process.

I can attest that JLine is very good. Both Spring Roo and Spring boot use it. I have used it on some of my own tools in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants