homebrew-core/Formula/docker-machine-completion.rb
Igor Kapkov eb23b0e9ad
docker-machine-completion 0.16.0
Closes #34138.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-11-16 16:07:18 +08:00

22 lines
786 B
Ruby

class DockerMachineCompletion < Formula
desc "Docker-machine completion script"
homepage "https://docs.docker.com/machine/completion/"
url "https://github.com/docker/machine/archive/v0.16.0.tar.gz"
sha256 "42342b21410cc29d71ca4d5b25e17eeaf20f21a0f3b825e702a7ddcff5adcb16"
head "https://github.com/docker/machine.git"
bottle :unneeded
conflicts_with "docker-machine",
:because => "docker-machine already includes completion scripts"
def install
bash_completion.install Dir["contrib/completion/bash/*.bash"]
zsh_completion.install "contrib/completion/zsh/_docker-machine"
end
test do
assert_match "-F _docker_machine",
shell_output("bash -O extglob -c 'source #{bash_completion}/docker-machine.bash && complete -p docker-machine'")
end
end