Move zsh completion logic to new subcommand: kill

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2016-10-30 16:46:04 +01:00 committed by Tibor Vass
parent 61507603fb
commit ca352f2941
1 changed files with 5 additions and 5 deletions

View File

@ -683,7 +683,10 @@ __docker_container_subcommand() {
"($help -)*:containers:__docker_complete_containers" && ret=0
;;
(kill)
__docker_subcommand && ret=0
_arguments $(__docker_arguments) \
$opts_help \
"($help -s --signal)"{-s=,--signal=}"[Signal to send]:signal:_signals" \
"($help -)*:containers:__docker_complete_running_containers" && ret=0
;;
(logs)
__docker_subcommand && ret=0
@ -1999,10 +2002,7 @@ __docker_subcommand() {
esac
;;
(kill)
_arguments $(__docker_arguments) \
$opts_help \
"($help -s --signal)"{-s=,--signal=}"[Signal to send]:signal:_signals" \
"($help -)*:containers:__docker_complete_running_containers" && ret=0
__docker_container_subcommand && ret=0
;;
(load)
_arguments $(__docker_arguments) \