mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: restart
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
25fc254d3a
commit
b3b41803ed
|
@ -733,7 +733,10 @@ __docker_container_subcommand() {
|
||||||
"($help -):new name: " && ret=0
|
"($help -):new name: " && ret=0
|
||||||
;;
|
;;
|
||||||
(restart)
|
(restart)
|
||||||
__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_containers_ids" && ret=0
|
||||||
;;
|
;;
|
||||||
(rm)
|
(rm)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -2131,10 +2134,7 @@ __docker_subcommand() {
|
||||||
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
||||||
;;
|
;;
|
||||||
(restart)
|
(restart)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_container_subcommand && ret=0
|
||||||
$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_containers_ids" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(rm)
|
(rm)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
|
|
Loading…
Reference in New Issue