Carry 13934: Add docker daemon to bash completion#15166
Conversation
Signed-off-by: Harald Albers <github@albersweb.de> Signed-off-by: Tibor Vass <tibor@docker.com>
|
LGTM |
|
LGTM |
Carry 13934: Add `docker daemon` to bash completion
|
cherry picked into #15091 |
|
Back from holiday, so here is my review: There is a group of options that is both contained in the output of Are these options really supported in both positions? That means they could be legally specified twice, e.g. Completion only supports these options for cc @thaJeztah |
|
@albers they are not legal, it will error out. |
|
@albers as in, EDIT: also, there is no way you can prevent the user from this: if it autocompletes to use |
|
@tiborvass I see. So the new syntax would be |
|
@albers Well, |
|
@tiborvass I thing I got it: The above mentioned options are valid for all client commands as global options, i.e. they must be given right behind For |
|
@albers correct |
|
@tiborvass Thanks for your patience. I'm a bit in a hurry to finish up the completion. So I will add support for the global options to |
|
@albers okay sorry about that, I'm really not good at these completion scripts. Thanks for your help! |
|
@tiborvass Well, I'm sorry that completion bounced back to you because I was on holiday. Thanks for taking care of it! |
|
@tiborvass By the way, I found that Is this framework related or can this be fixed? |
@albers please don't feel sorry. We were aware you didn't have time, and you're always helping out in fantastic ways. There's more in life than Docker and you deserve your Holidays, no stress (really!) ❤️ |
Signed-off-by: Harald Albers github@albersweb.de
Signed-off-by: Tibor Vass tibor@docker.com
Closes #13934
Ping @tianon I have no idea if this is good or lacking.