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

Provide bash completion #57

Closed
robinkrahl opened this issue Jan 8, 2019 · 3 comments
Closed

Provide bash completion #57

robinkrahl opened this issue Jan 8, 2019 · 3 comments

Comments

@robinkrahl
Copy link
Collaborator

nitrocli should provide a bash completion script (and possibly also completion for other shells). As writing it manually is tedious – especially with regard to nitrocli’s complicated command structure –, we should try to generate the completion script automatically.

A quick search only yielded one tool that might do that, auto-auto-complete. I did not yet evaluate whether we could use it with our command structure.

@d-e-s-o
Copy link
Owner

d-e-s-o commented Jan 8, 2019

clap could actually do that for us as well. Not that I am suggestion we switch or anything :)

But I like the idea of generating such a script offline.

@d-e-s-o
Copy link
Owner

d-e-s-o commented Apr 5, 2020

I've got a proof of concept working. Will see if it's possible to add tests and then send something out.

@d-e-s-o
Copy link
Owner

d-e-s-o commented Apr 12, 2020

While not yet contained in a release, bash completion support has landed in devel. Extending support to other shells (zsh and fish) should be trivial (modulo adding tests, which certainly has taken me longer than the actual feature...), but I am still on bash and have no real use for those. So let's add them once demand has been expressed. Closing accordingly.

Robin, if there is something that you perceive as lacking feel free to reopen.

@d-e-s-o d-e-s-o closed this as completed Apr 12, 2020
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