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
parent d0014299b4
commit c308befdc0
No known key found for this signature in database
GPG key ID: 8F443EBA70F74839

View file

@ -947,7 +947,10 @@ __docker_image_subcommand() {
"($help -)*:images:__docker_complete_images" && ret=0
;;
(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)
words[1]='images'
@ -2130,10 +2133,7 @@ __docker_subcommand() {
esac
;;
(load)
_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
__docker_image_subcommand && ret=0
;;
(login)
_arguments $(__docker_arguments) \