From e3d224e5205d872ab5245bb9939ca8b29d24e7ef Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sun, 30 Oct 2016 21:56:38 +0100 Subject: [PATCH] Move zsh completion logic to new subcommand: pull Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index fa094227d9..d60e6529fb 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -973,7 +973,11 @@ __docker_image_subcommand() { # @TODO ;; (pull) - __docker_subcommand && ret=0 + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -a --all-tags)"{-a,--all-tags}"[Download all tagged images]" \ + "($help)--disable-content-trust[Skip image verification]" \ + "($help -):name:__docker_search" && ret=0 ;; (push) __docker_subcommand && ret=0 @@ -2209,11 +2213,7 @@ __docker_subcommand() { __docker_container_subcommand && ret=0 ;; (pull) - _arguments $(__docker_arguments) \ - $opts_help \ - "($help -a --all-tags)"{-a,--all-tags}"[Download all tagged images]" \ - "($help)--disable-content-trust[Skip image verification]" \ - "($help -):name:__docker_search" && ret=0 + __docker_image_subcommand && ret=0 ;; (push) _arguments $(__docker_arguments) \