mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #31784 from albers/fix-completion-service-update-constraint
Fix bash completion for service constraints
This commit is contained in:
commit
47cd4bf526
1 changed files with 3 additions and 1 deletions
|
@ -2967,7 +2967,6 @@ _docker_service_update_and_create() {
|
|||
local $subcommand="${words[$subcommand_pos]}"
|
||||
|
||||
local options_with_args="
|
||||
--constraint
|
||||
--endpoint-mode
|
||||
--env -e
|
||||
--force
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue