mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Add bash completion for build --build-arg
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
a182300706
commit
583c673c8a
@ -110,9 +110,17 @@ __docker_compose_services_stopped() {
|
|||||||
|
|
||||||
|
|
||||||
_docker_compose_build() {
|
_docker_compose_build() {
|
||||||
|
case "$prev" in
|
||||||
|
--build-arg)
|
||||||
|
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||||
|
__docker_compose_nospace
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--force-rm --help --no-cache --pull" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--build-arg --force-rm --help --no-cache --pull" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_compose_services_from_build
|
__docker_compose_services_from_build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user