mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add zsh completion for 'docker plugin install --alias'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
7d0041f9e5
commit
455b7bcbab
1 changed files with 7 additions and 1 deletions
|
@ -1497,11 +1497,17 @@ __docker_plugin_subcommand() {
|
||||||
opts_help=("(: -)--help[Print usage]")
|
opts_help=("(: -)--help[Print usage]")
|
||||||
|
|
||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
(disable|enable|inspect|install|ls|push|rm)
|
(disable|enable|inspect|ls|push|rm)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
"($help -)1:plugin:__docker_complete_plugins" && ret=0
|
"($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)
|
(set)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
|
|
Loading…
Add table
Reference in a new issue