mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Add bash completion for --profile
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
862107a32a
commit
4e382b9c28
@ -172,6 +172,10 @@ _docker_compose_docker_compose() {
|
|||||||
COMPREPLY=( $( compgen -W "debug info warning error critical" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "debug info warning error critical" -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--profile)
|
||||||
|
COMPREPLY=( $( compgen -W "$(__docker_compose_q config --profiles)" -- "$cur" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
--project-directory)
|
--project-directory)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return
|
return
|
||||||
@ -618,10 +622,11 @@ _docker_compose() {
|
|||||||
--tlskey
|
--tlskey
|
||||||
"
|
"
|
||||||
|
|
||||||
# These options are require special treatment when searching the command.
|
# These options require special treatment when searching the command.
|
||||||
local top_level_options_with_args="
|
local top_level_options_with_args="
|
||||||
--ansi
|
--ansi
|
||||||
--log-level
|
--log-level
|
||||||
|
--profile
|
||||||
"
|
"
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user