Add bash completion for docker stats --format
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
c0699cd4a4
commit
ed0f53d7b6
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue