Add bash completion for `docker version --format`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-12-04 14:13:14 -08:00 committed by Tibor Vass
parent 0a75b0264f
commit 45a292bc44
1 changed files with 7 additions and 1 deletions

View File

@ -3690,9 +3690,15 @@ _docker_top() {
}
_docker_version() {
case "$prev" in
--format|-f)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) )
;;
esac
}