46d1c2e731
Closes #33767. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
23 lines
846 B
Ruby
23 lines
846 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.23.1.tar.gz"
|
|
sha256 "843a458d366ca1d41ceec08b3387ba55c6953eba3a171d6af90db0b01f494312"
|
|
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"
|
|
fish_completion.install "contrib/completion/fish/docker-compose.fish"
|
|
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
|