mirror of https://github.com/docker/cli.git
Move bash completion logic to new subcommand: stats
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
f58b6746d7
commit
04886bca2f
|
@ -1595,7 +1595,20 @@ _docker_container_start() {
|
|||
}
|
||||
|
||||
_docker_container_stats() {
|
||||
_docker_stats
|
||||
case "$prev" in
|
||||
--format)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--all -a --format --help --no-stream" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_complete_containers_running
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_container_stop() {
|
||||
|
@ -2913,20 +2926,7 @@ _docker_start() {
|
|||
}
|
||||
|
||||
_docker_stats() {
|
||||
case "$prev" in
|
||||
--format)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--all -a --format --help --no-stream" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
__docker_complete_containers_running
|
||||
;;
|
||||
esac
|
||||
_docker_container_stats
|
||||
}
|
||||
|
||||
_docker_stop() {
|
||||
|
|
Loading…
Reference in New Issue