mirror of
https://github.com/docker/compose.git
synced 2025-07-28 08:04:09 +02:00
Merge pull request #6230 from albers/completion-services--hash
Fix bash completion for `config --hash`
This commit is contained in:
commit
48a6f2132b
@ -136,7 +136,18 @@ _docker_compose_bundle() {
|
|||||||
|
|
||||||
|
|
||||||
_docker_compose_config() {
|
_docker_compose_config() {
|
||||||
COMPREPLY=( $( compgen -W "--help --quiet -q --resolve-image-digests --services --volumes --hash" -- "$cur" ) )
|
case "$prev" in
|
||||||
|
--hash)
|
||||||
|
if [[ $cur == \\* ]] ; then
|
||||||
|
COMPREPLY=( '\*' )
|
||||||
|
else
|
||||||
|
COMPREPLY=( $(compgen -W "$(__docker_compose_services) \\\* " -- "$cur") )
|
||||||
|
fi
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
COMPREPLY=( $( compgen -W "--hash --help --quiet -q --resolve-image-digests --services --volumes" -- "$cur" ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user