mirror of
https://github.com/docker/compose.git
synced 2026-06-25 10:38:23 +00:00
Merge pull request #4625 from albers/completion-build--build-arg
Add bash completion for `build --build-arg`
This commit is contained in:
commit
eaee7aa5d0
1 changed files with 9 additions and 1 deletions
|
|
@ -110,9 +110,17 @@ __docker_compose_services_stopped() {
|
|||
|
||||
|
||||
_docker_compose_build() {
|
||||
case "$prev" in
|
||||
--build-arg)
|
||||
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||
__docker_compose_nospace
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue