mirror of https://github.com/docker/cli.git
Add bash completion for `docker service create --env-file`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
da7306052f
commit
7e7a47405a
|
@ -2606,11 +2606,16 @@ _docker_service_update() {
|
||||||
if [ "$subcommand" = "create" ] ; then
|
if [ "$subcommand" = "create" ] ; then
|
||||||
options_with_args="$options_with_args
|
options_with_args="$options_with_args
|
||||||
--container-label
|
--container-label
|
||||||
|
--env-file
|
||||||
--mode
|
--mode
|
||||||
--name
|
--name
|
||||||
"
|
"
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
--env-file)
|
||||||
|
_filedir
|
||||||
|
return
|
||||||
|
;;
|
||||||
--mode)
|
--mode)
|
||||||
COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue