mirror of https://github.com/docker/compose.git
Fix bash completion for `config --hash`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
c17274d014
commit
b29ffb49e9
|
@ -136,7 +136,18 @@ _docker_compose_bundle() {
|
|||
|
||||
|
||||
_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…
Reference in New Issue