homebrew-core/Formula/boom-completion.rb

20 lines
589 B
Ruby
Raw Normal View History

class BoomCompletion < Formula
desc "Bash and Zsh completion for Boom"
homepage "https://zachholman.com/boom"
2017-04-01 06:37:48 +00:00
url "https://github.com/holman/boom/archive/v0.5.0.tar.gz"
sha256 "d107accf1fb84d9c245bb25383486179605d3b397c439c2f4690341283b0b2dd"
head "https://github.com/holman/boom.git"
bottle :unneeded
def install
bash_completion.install "completion/boom.bash" => "boom"
zsh_completion.install "completion/boom.zsh" => "_boom"
end
test do
assert_match "-F _boom_complete",
shell_output("source #{bash_completion}/boom && complete -p boom")
end
end