mirror of
https://github.com/moby/moby.git
synced 2026-08-09 09:33:50 +00:00
Merge pull request #26788 from albers/completion-stats--format
Add bash completion for `docker stats --format`
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user