blaze icon indicating copy to clipboard operation
blaze copied to clipboard

Bash completion support

Open jjlauer opened this issue 7 years ago • 1 comments

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

jjlauer avatar Sep 28 '16 14:09 jjlauer

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.

agentgt avatar Nov 21 '17 03:11 agentgt