Move zsh completion logic to new subcommand: save

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 22:03:55 +01:00 committed by Tibor Vass
parent f812608ff4
commit a3e4ac1d2f
1 changed files with 5 additions and 5 deletions

View File

@ -993,7 +993,10 @@ __docker_image_subcommand() {
"($help -)*: :__docker_complete_images" && ret=0
;;
(save)
__docker_subcommand && ret=0
_arguments $(__docker_arguments) \
$opts_help \
"($help -o --output)"{-o=,--output=}"[Write to file]:file:_files" \
"($help -)*: :__docker_complete_images" && ret=0
;;
(tag)
__docker_subcommand && ret=0
@ -2229,10 +2232,7 @@ __docker_subcommand() {
__docker_image_subcommand && ret=0
;;
(save)
_arguments $(__docker_arguments) \
$opts_help \
"($help -o --output)"{-o=,--output=}"[Write to file]:file:_files" \
"($help -)*: :__docker_complete_images" && ret=0
__docker_image_subcommand && ret=0
;;
(search)
_arguments $(__docker_arguments) \