mirror of https://github.com/docker/cli.git
Move zsh completion logic to new subcommand: stats
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
2fd33da75f
commit
5323c46677
|
@ -805,7 +805,12 @@ __docker_container_subcommand() {
|
||||||
"($help -)*:containers:__docker_complete_stopped_containers" && ret=0
|
"($help -)*:containers:__docker_complete_stopped_containers" && ret=0
|
||||||
;;
|
;;
|
||||||
(stats)
|
(stats)
|
||||||
__docker_subcommand && ret=0
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -a --all)"{-a,--all}"[Show all containers (default shows just running)]" \
|
||||||
|
"($help)--format=[Pretty-print images using a Go template]:template: " \
|
||||||
|
"($help)--no-stream[Disable streaming stats and only pull the first result]" \
|
||||||
|
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
||||||
;;
|
;;
|
||||||
(stop)
|
(stop)
|
||||||
__docker_subcommand && ret=0
|
__docker_subcommand && ret=0
|
||||||
|
@ -2190,12 +2195,7 @@ __docker_subcommand() {
|
||||||
__docker_container_subcommand && ret=0
|
__docker_container_subcommand && ret=0
|
||||||
;;
|
;;
|
||||||
(stats)
|
(stats)
|
||||||
_arguments $(__docker_arguments) \
|
__docker_container_subcommand && ret=0
|
||||||
$opts_help \
|
|
||||||
"($help -a --all)"{-a,--all}"[Show all containers (default shows just running)]" \
|
|
||||||
"($help)--format=[Pretty-print images using a Go template]:template: " \
|
|
||||||
"($help)--no-stream[Disable streaming stats and only pull the first result]" \
|
|
||||||
"($help -)*:containers:__docker_complete_running_containers" && ret=0
|
|
||||||
;;
|
;;
|
||||||
(swarm)
|
(swarm)
|
||||||
local curcontext="$curcontext" state
|
local curcontext="$curcontext" state
|
||||||
|
|
Loading…
Reference in New Issue