homebrew-core/Formula/boom-completion.rb
2017-03-31 23:37:48 -07:00

19 lines
589 B
Ruby

class BoomCompletion < Formula
desc "Bash and Zsh completion for Boom"
homepage "https://zachholman.com/boom"
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