angle-grinder 0.7.3 (new formula)
Closes #26363. Signed-off-by: commitay <commitay@users.noreply.github.com>
This commit is contained in:
parent
642f685cda
commit
55b8236186
1 changed files with 18 additions and 0 deletions
18
Formula/angle-grinder.rb
Normal file
18
Formula/angle-grinder.rb
Normal 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
|
Loading…
Reference in a new issue