Improve bash completion for `--credential-spec`

This option is Windows specific and should be only available if the
daemon runs on Windows.

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-07-18 19:13:18 +02:00
parent 21b5bbe411
commit 056ccf88be
1 changed files with 3 additions and 1 deletions

View File

@ -3289,7 +3289,6 @@ _docker_service_update() {
# and `docker service update` # and `docker service update`
_docker_service_update_and_create() { _docker_service_update_and_create() {
local options_with_args=" local options_with_args="
--credential-spec
--endpoint-mode --endpoint-mode
--entrypoint --entrypoint
--env -e --env -e
@ -3330,6 +3329,9 @@ _docker_service_update_and_create() {
--user -u --user -u
--workdir -w --workdir -w
" "
__docker_daemon_os_is windows && options_with_args+="
--credential-spec
"
local boolean_options=" local boolean_options="
--detach=false -d=false --detach=false -d=false