-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add shell completion #342
Comments
Huh, completion must have snuck in when I upgraded cobra a while back. Will need time to investigate, there may be limitation to what cobra provides, or how we do things that prevent it from working as intended. |
It seems to do arguments for me with |
If I type:
...and then press tab, I get
HTH, |
I can't reproduce that behaviour, it works fine for me, so not sure where to even start here. Did your completion script get truncated, or are you sourcing it properly? The shell completion scripts are not controlled by the lagoon-cli, but by |
@tnelson-doghouse Shell completion in bash relies on functions defined in the |
Thanks @smlx ! Works for me now. For the record, on Fedora I did:
So it seems the remaining issues here are:
HTH, |
+1 for better support (on ZSH) |
Is your feature request related to a problem? Please describe.
I would love shell completion for all Lagoon CLI commands and arguments.
Describe the solution you'd like
I believe Cobra has basic support for this
However, this does not list the arguments from what I can tell.
It would also be nice to have documentation about this, perhaps around the installation instructions.
The text was updated successfully, but these errors were encountered: