1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add bash completion for docker version --format

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 3d43c48c1b)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Harald Albers 2016-12-04 14:13:14 -08:00 committed by Victor Vieux
parent fd7aee8fe0
commit 6ce7fb23f5

View file

@ -3810,9 +3810,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
}