homebrew-core/Formula/docker-completion.rb
2017-03-21 21:41:21 +01:00

24 lines
797 B
Ruby

class DockerCompletion < Formula
desc "Bash, Zsh and Fish completion for Docker"
homepage "https://github.com/docker/docker"
url "https://github.com/docker/docker/archive/v17.03.0-ce.tar.gz"
version "17.03.0"
sha256 "d8e91af5b2799cafac113a400d4db9c6abe01ae823f378d2f4d3d3e55e48eaf6"
head "https://github.com/docker/docker"
bottle :unneeded
conflicts_with "docker",
:because => "docker already includes these completion scripts"
def install
bash_completion.install "contrib/completion/bash/docker"
fish_completion.install "contrib/completion/fish/docker.fish"
zsh_completion.install "contrib/completion/zsh/_docker"
end
test do
assert_match "-F _docker",
shell_output("bash -c 'source #{bash_completion}/docker && complete -p docker'")
end
end