mirror of https://github.com/docker/cli.git
Add bash completion for `docker version --format`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
0a75b0264f
commit
45a292bc44
|
@ -3690,9 +3690,15 @@ _docker_top() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_version() {
|
_docker_version() {
|
||||||
|
case "$prev" in
|
||||||
|
--format|-f)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue