-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix zsh autocompletion #4903
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
Fix zsh autocompletion #4903
Conversation
|
@askervin: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Hi @askervin. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
thanks for the PR @askervin ! our zsh completions are autogenerated by a go template: https://github.com/cri-o/cri-o/blob/master/internal/criocli/completion.go#L75 |
|
/ok-to-test |
Oh, that's great! Thanks for pointing this out, @haircommander. :)
Sure thing. I hope this is fine. Escaping single quotes inside single quotes looks a bit complicated in shells, but it works... |
|
/test kata-containers |
|
hm are you running |
Ah, I was missing that. Generated changes amended and force-pushed. Couldn't run |
|
@askervin hello! Could you give this a rebase? |
d53db87 to
9c481c0
Compare
|
@wgahnagl, Thanks for reminder! Rebased and retested on top of the master branch. |
Codecov Report
@@ Coverage Diff @@
## main #4903 +/- ##
==========================================
+ Coverage 43.76% 44.26% +0.49%
==========================================
Files 118 112 -6
Lines 11721 11565 -156
==========================================
- Hits 5130 5119 -11
+ Misses 6104 5959 -145
Partials 487 487 |
- Fix unmatched ' issue in commands. - Split commands and options on separate lines to make them easier to review and less prone to merge conflicts. - Keep multi-line usages on single line, this removes characters "\n" from zsh completion output. Signed-off-by: Antti Kervinen <[email protected]>
9c481c0 to
03805a6
Compare
|
@wgahnagl , @haircommander , I think this PR would be good to go. Fixes an error and results in fewer conflicts in |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: askervin, haircommander The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@askervin: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@askervin: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Already fixed by #5586 . |
them easier to review and less prone to merge conflicts.
Signed-off-by: Antti Kervinen [email protected]
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
completion/zsh/_crioless prone to merge conflicts. Currently all commits that add command line options will conflict due to this file. This helps reviewing zsh completion changes, too.Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?