-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Zsh completion fixes #788
base: master
Are you sure you want to change the base?
Zsh completion fixes #788
Conversation
Codecov Report
@@ Coverage Diff @@
## master #788 +/- ##
======================================
Coverage 50.9% 50.9%
======================================
Files 237 237
Lines 15338 15338
======================================
Hits 7808 7808
Misses 7028 7028
Partials 502 502 |
See moby/moby@402caa9 (moby/moby#17124) for an explanation |
Reading the Zsh documentation for |
Technically, all short options take a value; But; if you have a solution that works, feel free to open a PR for it so that we can try if it works 👍 |
Guess I jumped to the conclusion that it wasn't included, but it seems the completion script actually already has the required '='. So it's really an issue with Zsh's |
When using option-stacking the -f flag that controls completing running containers can be a part of another word of options, so use opt_args that contains the parsed arguments from _arguments to check for it instead. Signed-off-by: Segev Finer <[email protected]>
A missing '$' Signed-off-by: Segev Finer <[email protected]>
889a284
to
ec601dd
Compare
@segevfiner is there anything left to do in this PR, or do I understand correctly that this should be closed? |
It can be merged/closed.
בתאריך יום ב׳, 30 באפר׳ 2018, 15:04, מאת Sebastiaan van Stijn <
[email protected]>:
… @segevfiner <https://github.com/segevfiner> is there anything left to do
in this PR, or do I understand correctly that this should be closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#788 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXlg_4ftCMgLXPbVXTi3NxuZC4NIPjbGks5ttv3BgaJpZM4RU6S6>
.
|
ping @jphuynh @sdurrheimer PTAL 🤗 |
Hi guys, sorry for necro-posting, but I'm really interested in the current situation around zsh completions for docker. Why this PR was left on reads? |
Sorry no particular reason from my side apart that I kind of dropped the ball on that moving out from zsh for a long while. Feel free to review that if it's still relevant. I might have a look later if I find some time. |
- What I did
I fixed two issues in the Zsh completion script:
docker rm -vf
.docker container update
completion which was broken.- How I did it
-f
in$opt_args
instead of in$words
.$
.- How to verify it
option-stacking
& try to complete afterdocker rm -vf
when you have running containers:docker container update
. It used to spew an error from_arguments
.- Description for the changelog
Complete running containers correctly after docker rm -vf in Zsh
Fix docker container update completion in Zsh
P.S. Why is
option-stacking
(The-s
argument to_arguments
) even an option/zstyle, and not enabled by default? Whether option stacking is possible, or not, is a property of the docker command, which always accepts them. I think it really should be on by default, and I'm not sure having an option is even necessary.