mirror of https://github.com/docker/cli.git
Add file completion to bash completion for `secret create`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
7cf9e752d5
commit
abc793e333
|
@ -1184,7 +1184,7 @@ _docker_config_create() {
|
|||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag '--label|-l')
|
||||
if [ "$cword" -eq $((counter + 1)) ]; then
|
||||
if [ "$cword" -eq "$((counter + 1))" ]; then
|
||||
_filedir
|
||||
fi
|
||||
;;
|
||||
|
@ -4159,6 +4159,12 @@ _docker_secret_create() {
|
|||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --label -l" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter=$(__docker_pos_first_nonflag '--label|-l')
|
||||
if [ "$cword" -eq "$((counter + 1))" ]; then
|
||||
_filedir
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue