homebrew-core/Formula/docker-completion.rb
Michihito Shigemura c697ea23ee docker-completion 18.09.0
Closes #33914.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-11-08 08:47:54 +01:00

23 lines
769 B
Ruby

class DockerCompletion < Formula
desc "Bash, Zsh and Fish completion for Docker"
homepage "https://www.docker.com/"
url "https://github.com/docker/docker-ce.git",
:tag => "v18.09.0",
:revision => "4d60db472b2bde6931072ca6467f2667c2590dff"
bottle :unneeded
conflicts_with "docker",
:because => "docker already includes these completion scripts"
def install
bash_completion.install "components/cli/contrib/completion/bash/docker"
fish_completion.install "components/cli/contrib/completion/fish/docker.fish"
zsh_completion.install "components/cli/contrib/completion/zsh/_docker"
end
test do
assert_match "-F _docker",
shell_output("bash -c 'source #{bash_completion}/docker && complete -p docker'")
end
end