Move zsh completion logic to new subcommand: pause, unpause

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 16:51:26 +01:00 committed by Tibor Vass
parent f7dba85a99
commit 67a2df2d80
1 changed files with 5 additions and 8 deletions

View File

@ -712,8 +712,10 @@ __docker_container_subcommand() {
"($help -s --size)"{-s,--size}"[Display total file sizes]" \
"($help)--since=[Show only containers created since...]:containers:__docker_complete_containers" && ret=0
;;
(pause)
__docker_subcommand && ret=0
(pause|unpause)
_arguments $(__docker_arguments) \
$opts_help \
"($help -)*:containers:__docker_complete_running_containers" && ret=0
;;
(port)
__docker_subcommand && ret=0
@ -745,9 +747,6 @@ __docker_container_subcommand() {
(top)
__docker_subcommand && ret=0
;;
(unpause)
__docker_subcommand && ret=0
;;
(update)
__docker_subcommand && ret=0
;;
@ -2077,9 +2076,7 @@ __docker_subcommand() {
esac
;;
(pause|unpause)
_arguments $(__docker_arguments) \
$opts_help \
"($help -)*:containers:__docker_complete_running_containers" && ret=0
__docker_container_subcommand && ret=0
;;
(plugin)
local curcontext="$curcontext" state