Fix bash completion for service constraints

- Remove bash completion for `service update --constraint`
- Add bash completion for `service update --constraint-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-03-13 16:50:08 +01:00 committed by Tibor Vass
parent 558b8923ab
commit 380be7f725
1 changed files with 3 additions and 1 deletions

View File

@ -2967,7 +2967,6 @@ _docker_service_update_and_create() {
local $subcommand="${words[$subcommand_pos]}" local $subcommand="${words[$subcommand_pos]}"
local options_with_args=" local options_with_args="
--constraint
--endpoint-mode --endpoint-mode
--env -e --env -e
--force --force
@ -3018,6 +3017,7 @@ _docker_service_update_and_create() {
if [ "$subcommand" = "create" ] ; then if [ "$subcommand" = "create" ] ; then
options_with_args="$options_with_args options_with_args="$options_with_args
--constraint
--container-label --container-label
--dns --dns
--dns-option --dns-option
@ -3061,6 +3061,8 @@ _docker_service_update_and_create() {
if [ "$subcommand" = "update" ] ; then if [ "$subcommand" = "update" ] ; then
options_with_args="$options_with_args options_with_args="$options_with_args
--arg --arg
--constraint-add
--constraint-rm
--container-label-add --container-label-add
--container-label-rm --container-label-rm
--dns-add --dns-add