Add bash completion for `secret create --driver`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-10-11 18:55:28 +02:00
parent b70f9296dd
commit 1d7a31f87e
1 changed files with 3 additions and 3 deletions

View File

@ -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