homebrew-core/Formula/docker-compose-completion.rb
Igor Kapkov b928c815ef docker-compose-completion 1.24.0
Closes #38684.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-04-05 12:22:05 +02: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.24.0.tar.gz"
sha256 "31933e401d295812617f23377f63fc2b8da13d8456b61a60cec0e02afcad5672"
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