-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Add zsh completion for new 'docker container' subcommands #27888
Add zsh completion for new 'docker container' subcommands #27888
Conversation
2365583
to
97ab0a6
Compare
Thank you @sdurrheimer!! Also /cc @vdemeester @tianon @mlaventure |
Looks ok, but doesn't complete |
@cpuguy83 Hum, the Hum right, the |
Ah, that may be why -- I'm not on latest, just replaced my normal completion with this here. |
@sdurrheimer There's also #27468 pending, which might not be solvable by parsing help output. |
@vincentbernat What do you think about the 1st level completion of docker commands, should we keep parsing the |
I don't have a strong opinion on this. If you need help to parse the new |
@vincentbernat They introduce a new Here you go
|
Thanks. I propose the following:
This is a bit simpler (and works with older versions too). It also deals with the inspect line being cut (but the description should simply be shortened, I have created #28045 for that). |
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
…command Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
97ab0a6
to
94863d8
Compare
@vincentbernat Thank you very much, change added to the PR. |
|
LGTM |
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 🐮
@sdurrheimer one question though : docker con<tab>
doesn't propose container
, is this intended ?
@vdemeester Same as for @cpuguy83, are you using a docker 1.13 client when doing the test ? First level commands are completed/cached from the |
@sdurrheimer arg you're right, my client was 1.12.2 😓 It's working as expected once I switch 👼 |
ref. #26025
Same logic as @albers #27579 PR, splitting commits for better review session.
@vincentbernat