From 71dd0e0b668a5755d89815a9c310c2370680c1dc Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 27 Jun 2017 17:32:43 +0200 Subject: [PATCH] Add bash completion for `service create|update (update|rollback)-order` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 79209c2941..6183996b26 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3065,6 +3065,7 @@ _docker_service_update_and_create() { --rollback-failure-action --rollback-max-failure-ratio --rollback-monitor + --rollback-order --rollback-parallelism --stop-grace-period --stop-signal @@ -3072,6 +3073,7 @@ _docker_service_update_and_create() { --update-failure-action --update-max-failure-ratio --update-monitor + --update-order --update-parallelism --user -u --workdir -w @@ -3240,6 +3242,10 @@ _docker_service_update_and_create() { COMPREPLY=( $( compgen -W "continue pause rollback" -- "$cur" ) ) return ;; + --update-order|--rollback-order) + COMPREPLY=( $( compgen -W "start-first stop-first" -- "$cur" ) ) + return + ;; --user|-u) __docker_complete_user_group return