mirror of https://github.com/docker/compose.git
Merge pull request #4757 from albers/completion-up--scale
Add bash completion for `docker-compose up --scale`
This commit is contained in:
commit
561d3db387
|
@ -498,10 +498,19 @@ _docker_compose_unpause() {
|
||||||
|
|
||||||
_docker_compose_up() {
|
_docker_compose_up() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
=)
|
||||||
|
COMPREPLY=("$cur")
|
||||||
|
return
|
||||||
|
;;
|
||||||
--exit-code-from)
|
--exit-code-from)
|
||||||
__docker_compose_services_all
|
__docker_compose_services_all
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--scale)
|
||||||
|
COMPREPLY=( $(compgen -S "=" -W "$(___docker_compose_all_services_in_compose_file)" -- "$cur") )
|
||||||
|
__docker_compose_nospace
|
||||||
|
return
|
||||||
|
;;
|
||||||
--timeout|-t)
|
--timeout|-t)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -509,7 +518,7 @@ _docker_compose_up() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--abort-on-container-exit --build -d --exit-code-from --force-recreate --help --no-build --no-color --no-deps --no-recreate --timeout -t --remove-orphans" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--abort-on-container-exit --build -d --exit-code-from --force-recreate --help --no-build --no-color --no-deps --no-recreate --remove-orphans --scale --timeout -t" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_compose_services_all
|
__docker_compose_services_all
|
||||||
|
|
Loading…
Reference in New Issue