fe7dc34c9f
Closes #26457. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
22 lines
772 B
Ruby
22 lines
772 B
Ruby
class DockerComposeCompletion < Formula
|
|
desc "Docker-compose completion script"
|
|
homepage "https://docs.docker.com/compose/completion/"
|
|
url "https://github.com/docker/compose/archive/1.21.0.tar.gz"
|
|
sha256 "75c954d27f43e6e50f3710f4157abad264d6744f8b96c9edd25569d356b8f596"
|
|
head "https://github.com/docker/compose.git"
|
|
|
|
bottle :unneeded
|
|
|
|
conflicts_with "docker-compose",
|
|
:because => "docker-compose already includes completion scripts"
|
|
|
|
def install
|
|
bash_completion.install "contrib/completion/bash/docker-compose"
|
|
zsh_completion.install "contrib/completion/zsh/_docker-compose"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _docker_compose",
|
|
shell_output("bash -c 'source #{bash_completion}/docker-compose && complete -p docker-compose'")
|
|
end
|
|
end
|