mirror of
https://github.com/docker/compose.git
synced 2025-06-30 10:24:30 +02:00
Fix bash completion for up --exit-code-from
`--exit-code-from` requires an argument. Also corrected sort order. Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
9d2c6f156b
commit
02c294ee28
@ -498,6 +498,10 @@ _docker_compose_unpause() {
|
|||||||
|
|
||||||
_docker_compose_up() {
|
_docker_compose_up() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
--exit-code-from)
|
||||||
|
__docker_compose_services_all
|
||||||
|
return
|
||||||
|
;;
|
||||||
--timeout|-t)
|
--timeout|-t)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
@ -505,7 +509,7 @@ _docker_compose_up() {
|
|||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--exit-code-from --abort-on-container-exit --build -d --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 --timeout -t --remove-orphans" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_compose_services_all
|
__docker_compose_services_all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user