25 lines
784 B
Ruby
25 lines
784 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: "v19.03.12",
|
|
revision: "48a66213fe1747e8873f849862ff3fb981899fc6"
|
|
license "Apache-2.0"
|
|
|
|
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
|