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