Move zsh completion logic to new subcommand: load

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 21:53:53 +01:00 committed by Tibor Vass
parent 8fa658335b
commit e21d331b1e
1 changed files with 5 additions and 5 deletions

View File

@ -947,7 +947,10 @@ __docker_image_subcommand() {
"($help -)*:images:__docker_complete_images" && ret=0 "($help -)*:images:__docker_complete_images" && ret=0
;; ;;
(load) (load)
__docker_subcommand && ret=0 _arguments $(__docker_arguments) \
$opts_help \
"($help -i --input)"{-i=,--input=}"[Read from tar archive file]:archive file:_files -g \"*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|)|(tbz|tgz|txz))(-.)\"" \
"($help -q --quiet)"{-q,--quiet}"[Suppress the load output]" && ret=0
;; ;;
(ls|list) (ls|list)
words[1]='images' words[1]='images'
@ -2136,10 +2139,7 @@ __docker_subcommand() {
esac esac
;; ;;
(load) (load)
_arguments $(__docker_arguments) \ __docker_image_subcommand && ret=0
$opts_help \
"($help -i --input)"{-i=,--input=}"[Read from tar archive file]:archive file:_files -g \"*.((tar|TAR)(.gz|.GZ|.Z|.bz2|.lzma|.xz|)|(tbz|tgz|txz))(-.)\"" \
"($help -q --quiet)"{-q,--quiet}"[Suppress the load output]" && ret=0
;; ;;
(login) (login)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) \