Add zsh completion for 'docker plugin install --alias'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit 455b7bcbab
)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
0be8ebd2a1
commit
0fa35e2073
1 changed files with 7 additions and 1 deletions
|
@ -1520,11 +1520,17 @@ __docker_plugin_subcommand() {
|
|||
opts_help=("(: -)--help[Print usage]")
|
||||
|
||||
case "$words[1]" in
|
||||
(disable|enable|inspect|install|ls|push|rm)
|
||||
(disable|enable|inspect|ls|push|rm)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help \
|
||||
"($help -)1:plugin:__docker_complete_plugins" && ret=0
|
||||
;;
|
||||
(install)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help \
|
||||
"($help)--alias=[Local name for plugin]:alias: " \
|
||||
"($help -)1:plugin:__docker_complete_plugins" && ret=0
|
||||
;;
|
||||
(set)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help \
|
||||
|
|
Loading…
Reference in a new issue