docker-compose-completion: import from homebrew/completions.

master
Mike McQuaid 2017-01-23 15:26:29 +00:00
parent b65be7c552
commit 8281b92d99
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
class DockerComposeCompletion < Formula
desc "docker-compose completion script"
homepage "https://docs.docker.com/compose/completion/"
url "https://github.com/docker/compose/archive/1.10.0.tar.gz"
sha256 "0277930feaeb03f480914274f65eb419a2ee4b48be9a9fb55a201bb3a14bf290"
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"
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