Merge pull request #26788 from albers/completion-stats--format

Add bash completion for `docker stats --format`
Upstream-commit: f8df4b5c2e2d8a61d605e91a9c77e1af5557bf65
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2016-09-21 21:22:02 +02:00
committed by GitHub

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