Add bash completion for docker stats --format

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: ed0f53d7b6c64044a02e65251e92e7cac7f41c14
Component: engine
This commit is contained in:
Harald Albers
2016-09-21 20:19:14 +02:00
parent ba3ea763a4
commit 4d0761852a

View File

@ -2669,9 +2669,15 @@ _docker_start() {
}
_docker_stats() {
case "$prev" in
--format)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --help --no-stream" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--all -a --format --help --no-stream" -- "$cur" ) )
;;
*)
__docker_complete_containers_running