Move zsh completion logic to new subcommand: port

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

View File

@ -718,7 +718,10 @@ __docker_container_subcommand() {
"($help -)*:containers:__docker_complete_running_containers" && ret=0 "($help -)*:containers:__docker_complete_running_containers" && ret=0
;; ;;
(port) (port)
__docker_subcommand && ret=0 _arguments $(__docker_arguments) \
$opts_help \
"($help -)1:containers:__docker_complete_running_containers" \
"($help -)2:port:_ports" && ret=0
;; ;;
(prune) (prune)
# @TODO # @TODO
@ -2096,10 +2099,7 @@ __docker_subcommand() {
esac esac
;; ;;
(port) (port)
_arguments $(__docker_arguments) \ __docker_container_subcommand && ret=0
$opts_help \
"($help -)1:containers:__docker_complete_running_containers" \
"($help -)2:port:_ports" && ret=0
;; ;;
(ps) (ps)
words[1]='ls' words[1]='ls'