-
Notifications
You must be signed in to change notification settings - Fork 764
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
[completion] Add header #compdef #1915
Conversation
|
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 LGTM but unsure regarding why CI is failing, any idea @TessaIO ?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage, sazriel26 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sazriel26 can you rebase please to make the tests pass |
@TessaIO I gave a try to rebase, is it ok ? |
Sorry for the late merge, LGTM now! Tested it locally and it works. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Generation of zsh completion misses header
#compdef kompose
as updated in reference:https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/completion/completion.go#L174
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Not familiar with Go, but looks confident about 🤗
Since the completion is not "native" but converted from
bash
, the directivecompdef <function> <command>
looks not mandatory (this is the second line to append when completion is zsh-native)