angle-grinder 0.7.3 (new formula)

Closes #26363.

Signed-off-by: commitay <commitay@users.noreply.github.com>
This commit is contained in:
Russell Cohen 2018-04-09 14:46:09 -07:00 committed by commitay
parent 642f685cda
commit 55b8236186

18
Formula/angle-grinder.rb Normal file
View file

@ -0,0 +1,18 @@
class AngleGrinder < Formula
desc "Slice and dice log files on the command-line"
homepage "https://github.com/rcoh/angle-grinder"
url "https://github.com/rcoh/angle-grinder/archive/v0.7.3.tar.gz"
sha256 "2993c05c927b2e2a7fd5bf5211bcfce715f747c3889c25c351a34a60e021d50a"
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix
end
test do
(testpath/"logs.txt").write("{\"key\": 5}")
output = shell_output("#{bin}/agrind --file logs.txt '* | json'")
assert_match "[key=5]", output
end
end