Merge pull request #256 from albers/completion-service-update-order

Add bash completion for `service create|update (update|rollback)-order`
This commit is contained in:
Sebastiaan van Stijn 2017-06-30 01:12:57 -07:00 committed by GitHub
commit c726ccaf6c
1 changed files with 6 additions and 0 deletions

View File

@ -3066,6 +3066,7 @@ _docker_service_update_and_create() {
--rollback-failure-action
--rollback-max-failure-ratio
--rollback-monitor
--rollback-order
--rollback-parallelism
--stop-grace-period
--stop-signal
@ -3073,6 +3074,7 @@ _docker_service_update_and_create() {
--update-failure-action
--update-max-failure-ratio
--update-monitor
--update-order
--update-parallelism
--user -u
--workdir -w
@ -3247,6 +3249,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