homebrew-core/Formula/pidcat.rb
Pierre-Luc Paour 462366684b pidcat: add bash completion
Closes Homebrew/homebrew#40565.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-11 04:35:27 +01:00

18 lines
572 B
Ruby

require "formula"
class Pidcat < Formula
desc "Colored logcat script to show entries only for specified app"
homepage "https://github.com/JakeWharton/pidcat"
head "https://github.com/JakeWharton/pidcat.git"
url "https://github.com/JakeWharton/pidcat/archive/2.0.0.tar.gz"
sha256 "4bb3d7bab7e124e355892ee9cf87de1d6f39bea201b03fce6449ca2486470656"
def install
bin.install "pidcat.py" => "pidcat"
bash_completion.install "bash_completion.d/pidcat"
end
test do
assert_match /^usage: pidcat/, shell_output("#{bin}/pidcat --help").strip
end
end