mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: port
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
67a2df2d80
commit
64ea2f57e8
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue