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:
parent
fd7aee8fe0
commit
6ce7fb23f5
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue