Skip to content

Commit

Permalink
Merge pull request #31784 from albers/fix-completion-service-update-c…
Browse files Browse the repository at this point in the history
…onstraint

Fix bash completion for service constraints
  • Loading branch information
aaronlehmann committed Mar 13, 2017
2 parents 47615d9 + d1340b9 commit 47cd4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/completion/bash/docker
Expand Up @@ -2967,7 +2967,6 @@ _docker_service_update_and_create() {
local $subcommand="${words[$subcommand_pos]}"

local options_with_args="
--constraint
--endpoint-mode
--env -e
--force
Expand Down Expand Up @@ -3018,6 +3017,7 @@ _docker_service_update_and_create() {

if [ "$subcommand" = "create" ] ; then
options_with_args="$options_with_args
--constraint
--container-label
--dns
--dns-option
Expand Down Expand Up @@ -3061,6 +3061,8 @@ _docker_service_update_and_create() {
if [ "$subcommand" = "update" ] ; then
options_with_args="$options_with_args
--arg
--constraint-add
--constraint-rm
--container-label-add
--container-label-rm
--dns-add
Expand Down

0 comments on commit 47cd4bf

Please sign in to comment.