class DockerComposeCompletion < Formula desc "docker-compose completion script" homepage "https://docs.docker.com/compose/completion/" url "https://github.com/docker/compose/archive/1.13.0.tar.gz" sha256 "0cace4a814cf629689f1738fc221eb0de12f6336ee682b8c9539568f63cf6785" 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