sonar-completion: import from homebrew/completions.

master
Mike McQuaid 2017-01-23 15:26:31 +00:00
parent 35238f7475
commit 938ecd1a2f
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
class SonarCompletion < Formula
desc "Bash completion for Sonar"
homepage "https://github.com/a1dutch/sonarqube-bash-completion"
url "https://github.com/a1dutch/sonarqube-bash-completion/archive/1.0.tar.gz"
sha256 "501bb1c87fab9dd934cdc506f12e74ea21d48be72a9e4321c88187e4a0e0a99a"
head "https://github.com/a1dutch/sonarqube-bash-completion.git"
bottle :unneeded
def install
bash_completion.install "etc/bash_completion.d/sonar"
end
test do
assert_match "-F _sonar",
shell_output("source #{bash_completion}/sonar && complete -p sonar")
end
end