homebrew-core/Formula/docker-compose-completion.rb
Igor Kapkov 64905bc925
docker-compose-completion 1.23.2
Closes #34572.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-11-29 14:49:52 +08:00

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.2.tar.gz"
sha256 "18ff12f80e21011e76e04d2579745224316e232a5ca94c79a2865dac5c66eef6"
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