ripgrep-all 0.9.3 (new formula)

Closes #44440.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Oleksii Filonenko 2019-07-26 19:18:15 +03:00 committed by FX Coudert
parent e6f196030c
commit c871cea1ca
2 changed files with 23 additions and 0 deletions

1
Aliases/rga Symbolic link
View file

@ -0,0 +1 @@
../Formula/ripgrep-all.rb

22
Formula/ripgrep-all.rb Normal file
View file

@ -0,0 +1,22 @@
class RipgrepAll < Formula
desc "Wrapper around ripgrep that adds multiple rich file types"
homepage "https://github.com/phiresky/ripgrep-all"
url "https://github.com/phiresky/ripgrep-all/archive/0.9.3.tar.gz"
sha256 "06259e7c1734a9246c2d113bf5e914f4d418e53c201efc697bfc041a713fbef3"
head "https://github.com/phiresky/ripgrep-all.git"
depends_on "rust" => :build
depends_on "ripgrep"
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
(testpath/"file.txt").write("Hello World")
system "zip", "archive.zip", "file.txt"
output = shell_output("#{bin}/rga 'Hello World' #{testpath}")
assert_match "Hello World", output
end
end