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 fish shell completion #3231
Conversation
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
reference to https://github.com/spf13/cobra/blob/v1.1.1/shell_completions.md Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
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.
This is looking great. Thanks for updating the instructions as well. Just a couple of things that
need to be changed before it can be merged. It's worth noting that this will fix #3281 (opened after this PR).
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
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.
Thanks for making the changes, @jenting! This looks good to me but there is a local file accidentally included in this. Once that's removed, it'll be ready to merge :)
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
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.
Thanks!
* Support fish shell completion Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Use spf13/cobra library to generate zsh completion reference to https://github.com/spf13/cobra/blob/v1.1.1/shell_completions.md Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update velero completion help message Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Add changelog Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update cobra version in go.mod instead of replace Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Replace yourprogram to velero Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
* Support fish shell completion Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Use spf13/cobra library to generate zsh completion reference to https://github.com/spf13/cobra/blob/v1.1.1/shell_completions.md Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update velero completion help message Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Add changelog Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update cobra version in go.mod instead of replace Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Replace yourprogram to velero Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
* Support fish shell completion Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Use spf13/cobra library to generate zsh completion reference to https://github.com/spf13/cobra/blob/v1.1.1/shell_completions.md Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update velero completion help message Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Add changelog Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Update cobra version in go.mod instead of replace Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Replace yourprogram to velero Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
As fish shell supported at spf13/cobra v1.0.0 release, bump spf13/cobra package version to current latest version v1.1.1 to support fish shell completion for Velero.
The code change reference to https://github.com/spf13/cobra/blob/v1.1.1/shell_completions.md
fixes #3281