mirror of https://github.com/docker/cli.git
Add bash completion for `secret create --driver`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
b70f9296dd
commit
1d7a31f87e
|
@ -4189,17 +4189,17 @@ _docker_secret() {
|
|||
|
||||
_docker_secret_create() {
|
||||
case "$prev" in
|
||||
--label|-l)
|
||||
--driver|-d|--label|-l)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --label -l" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--driver -d --help --label -l" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag '--label|-l')
|
||||
local counter=$(__docker_pos_first_nonflag '--driver|-d|--label|-l')
|
||||
if [ "$cword" -eq "$((counter + 1))" ]; then
|
||||
_filedir
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue