homebrew-core/Formula/docker-completion.rb
Eduardo Sebastian 41da0c2a31
docker-completion 1.13.1
Closes #9896.

Signed-off-by: William Woodruff <william@tuffbizz.com>
2017-02-12 19:59:44 -05:00

23 lines
773 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/v1.13.1.tar.gz"
sha256 "2730e7cc15492de8f1d6f9510c64620fc9004c8afc1410bf3ebac9fc3f9f83c6"
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