mirror of
https://github.com/docker/compose.git
synced 2026-07-10 10:14:13 +00:00
Merge pull request #6230 from albers/completion-services--hash
Fix bash completion for `config --hash`
This commit is contained in:
commit
48a6f2132b
1 changed files with 12 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue