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
cmd: add zsh as a option for completion #9882
Conversation
Release note label not set, please set the appropriate release note. |
Thanks for your first contribution! LGTM overall, I'd just change the call as mentioned in the comment above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as long @rolinh changes requested are taken into account
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tonyluj please run make -C Documentation cmdref
and re-submit your changes. Thank you!
This adds zsh as a option for command completion, for zsh is also popular and cobra natively supports zsh. This will not change the default behavior of "completion" command. If no or "bash" argument specified, it generates the completion for bash. Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
This replaces Command.Run() with Command.RunE(), which exposes the error to the outer scope, then the rootCmd.Execute() could catch this error and print the error message with exit code -1. Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
6aacdcb
to
5f90e65
Compare
Commit f957815adbc392884e15f26da57c70ed31d951b0 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/contributing/#developer-s-certificate-of-origin |
f957815
to
5f90e65
Compare
@aanm |
test-me-please |
test-me-please |
Add zsh as an option for hubble command completion. The default behavior of the `completition` command is still bash completition, i.e. if no argument or `bash` is specified. The same was added to the `cilium` command in cilium/cilium#9882 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Add zsh as an option for hubble command completion. The default behavior of the `completition` command is still bash completition, i.e. if no argument or `bash` is specified. The same was added to the `cilium` command in cilium/cilium#9882 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Add zsh as an option for hubble command completion. The default behavior of the `completition` command is still bash completition, i.e. if no argument or `bash` is specified. The same was added to the `cilium` command in cilium/cilium#9882 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This adds zsh as a option for command completion, for zsh is also
popular and cobra natively supports zsh.
This will not change the default behavior of "completion" command.
If no or "bash" argument specified, it generates the completion for
bash.
Signed-off-by: Tony Lu tonylu@linux.alibaba.com
This change is