mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: stop
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
5323c46677
commit
8361fc40e7
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue