-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support cli autocompletion to logcli #2949
Comments
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I'd still like to have autocompletion in bash. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
It's still relevant. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I just found that the kingpin package (that logcli uses under the hood for argument parsing) includes some support for completion by default (kingpin docs). So I added this to my ~/.zshrc:
And I get some completions 🙂 |
This documents the existing command completion that kingpin provides (docs [here](https://github.com/alecthomas/kingpin#bashzsh-shell-completion) on that). **Which issue(s) this PR fixes**: Fixes #2949
This documents the existing command completion that kingpin provides (docs [here](https://github.com/alecthomas/kingpin#bashzsh-shell-completion) on that). **Which issue(s) this PR fixes**: Fixes grafana#2949
This documents the existing command completion that kingpin provides (docs [here](https://github.com/alecthomas/kingpin#bashzsh-shell-completion) on that). **Which issue(s) this PR fixes**: Fixes grafana#2949
This documents the existing command completion that kingpin provides (docs [here](https://github.com/alecthomas/kingpin#bashzsh-shell-completion) on that). **Which issue(s) this PR fixes**: Fixes grafana#2949
is there anything like this for the fish shell? |
Hmm no it looks like it's an open issue upstream: alecthomas/kingpin#259 |
Is your feature request related to a problem? Please describe.
I would like to have completion for logcli in bash.
Describe the solution you'd like
I'd appreciate a simple
logcli completion bash
subcommand that generates bash completion. Similarly maybe for other shells (zsh, fish, etc.).The text was updated successfully, but these errors were encountered: