From 8361fc40e7da4ab8140464e062611d764fc071c3 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sun, 30 Oct 2016 18:42:49 +0100 Subject: [PATCH] Move zsh completion logic to new subcommand: stop Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 0707de449f..4c06b28b50 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -813,7 +813,10 @@ __docker_container_subcommand() { "($help -)*:containers:__docker_complete_running_containers" && ret=0 ;; (stop) - __docker_subcommand && ret=0 + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \ + "($help -)*:containers:__docker_complete_running_containers" && ret=0 ;; (top) __docker_subcommand && ret=0 @@ -2132,12 +2135,6 @@ __docker_subcommand() { (rename) __docker_container_subcommand && ret=0 ;; - (stop) - _arguments $(__docker_arguments) \ - $opts_help \ - "($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \ - "($help -)*:containers:__docker_complete_running_containers" && ret=0 - ;; (restart) __docker_container_subcommand && ret=0 ;; @@ -2197,6 +2194,9 @@ __docker_subcommand() { (stats) __docker_container_subcommand && ret=0 ;; + (stop) + __docker_container_subcommand && ret=0 + ;; (swarm) local curcontext="$curcontext" state _arguments $(__docker_arguments) \