Skip to content

Commit

Permalink
lnav: add PRQL support
Browse files Browse the repository at this point in the history
Update the 0.12.3 version to include PRQL querying support.
  • Loading branch information
ttiimm committed Jan 5, 2025
1 parent 17a0d24 commit 49301ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Formula/l/lnav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Lnav < Formula
depends_on "re2c" => :build
end

depends_on "rust" => :build
depends_on "libarchive"
depends_on "ncurses"
depends_on "pcre2"
Expand All @@ -43,11 +44,14 @@ def install
"--with-sqlite3=#{Formula["sqlite"].opt_prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}",
"--with-libarchive=#{Formula["libarchive"].opt_prefix}",
"--with-ncurses=#{Formula["ncurses"].opt_prefix}"
"--with-ncurses=#{Formula["ncurses"].opt_prefix}",
"--with-rust=#{Formula["rust"].opt_prefix}"
system "make", "install", "V=1"
end

test do
system bin/"lnav", "-V"

assert_match "col1", pipe_output("#{bin}/lnav -n -c ';from [{ col1=1 }] | take 1'", "foo")
end
end

0 comments on commit 49301ea

Please sign in to comment.