mirror of https://github.com/docker/cli.git
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:
commit
c726ccaf6c
|
@ -3066,6 +3066,7 @@ _docker_service_update_and_create() {
|
||||||
--rollback-failure-action
|
--rollback-failure-action
|
||||||
--rollback-max-failure-ratio
|
--rollback-max-failure-ratio
|
||||||
--rollback-monitor
|
--rollback-monitor
|
||||||
|
--rollback-order
|
||||||
--rollback-parallelism
|
--rollback-parallelism
|
||||||
--stop-grace-period
|
--stop-grace-period
|
||||||
--stop-signal
|
--stop-signal
|
||||||
|
@ -3073,6 +3074,7 @@ _docker_service_update_and_create() {
|
||||||
--update-failure-action
|
--update-failure-action
|
||||||
--update-max-failure-ratio
|
--update-max-failure-ratio
|
||||||
--update-monitor
|
--update-monitor
|
||||||
|
--update-order
|
||||||
--update-parallelism
|
--update-parallelism
|
||||||
--user -u
|
--user -u
|
||||||
--workdir -w
|
--workdir -w
|
||||||
|
@ -3247,6 +3249,10 @@ _docker_service_update_and_create() {
|
||||||
COMPREPLY=( $( compgen -W "continue pause rollback" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "continue pause rollback" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--update-order|--rollback-order)
|
||||||
|
COMPREPLY=( $( compgen -W "start-first stop-first" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--user|-u)
|
--user|-u)
|
||||||
__docker_complete_user_group
|
__docker_complete_user_group
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue