mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: pause, unpause
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
f7dba85a99
commit
67a2df2d80
|
@ -712,8 +712,10 @@ __docker_container_subcommand() {
|
||||||
"($help -s --size)"{-s,--size}"[Display total file sizes]" \
|
"($help -s --size)"{-s,--size}"[Display total file sizes]" \
|
||||||
"($help)--since=[Show only containers created since...]:containers:__docker_complete_containers" && ret=0
|
"($help)--since=[Show only containers created since...]:containers:__docker_complete_containers" && ret=0
|
||||||
;;
|
;;
|
||||||
(pause)
|
(pause|unpause)
|
||||||
__docker_subcommand && ret=0
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
||||||
;;
|
;;
|
||||||
(port)
|
(port)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -745,9 +747,6 @@ __docker_container_subcommand() {
|
||||||
(top)
|
(top)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
;;
|
;;
|
||||||
(unpause)
|
|
||||||
__docker_subcommand && ret=0
|
|
||||||
;;
|
|
||||||
(update)
|
(update)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
;;
|
;;
|
||||||
|
@ -2077,9 +2076,7 @@ __docker_subcommand() {
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
(pause|unpause)
|
(pause|unpause)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_container_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(plugin)
|
(plugin)
|
||||||
local curcontext="$curcontext" state
|
local curcontext="$curcontext" state
|
||||||
|
|
Loading…
Reference in New Issue