homebrew-core/Formula/maven-completion.rb

22 lines
730 B
Ruby

class MavenCompletion < Formula
desc "Bash completion for Maven"
homepage "https://github.com/juven/maven-bash-completion"
url "https://github.com/juven/maven-bash-completion/archive/20200420.tar.gz"
sha256 "eb4ef412d140e19e7d3ce23adb7f8fcce566f44388cfdc8c1e766a3c4b183d3d"
license "Apache-2.0"
head "https://github.com/juven/maven-bash-completion.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, all: "a5e2dedc38c74f165c2f1168175215381d8836a6aaa0f952e33bab3b5383c8a3"
end
def install
bash_completion.install "bash_completion.bash" => "maven"
end
test do
assert_match "-F _mvn",
shell_output("bash -c 'source #{bash_completion}/maven && complete -p mvn'")
end
end