Merge pull request #27856 from albers/completion-service-create--env-file

Add bash completion for `docker service create --env-file`
Upstream-commit: 1462ea37d0014ef5f7f3e4bd9d174bcd0185e71d
Component: engine
This commit is contained in:
Vincent Demeester
2016-10-28 19:00:06 +02:00
committed by GitHub

View File

@ -2606,11 +2606,16 @@ _docker_service_update() {
if [ "$subcommand" = "create" ] ; then
options_with_args="$options_with_args
--container-label
--env-file
--mode
--name
"
case "$prev" in
--env-file)
_filedir
return
;;
--mode)
COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
return