From 6c9f15183252d9cfc7bc847bc54c465f82a2f1fc Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Tue, 27 Aug 2024 22:08:11 +0200 Subject: [PATCH] feat: add tbl --- Formula/tbl.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/tbl.rb diff --git a/Formula/tbl.rb b/Formula/tbl.rb new file mode 100644 index 0000000..8d91913 --- /dev/null +++ b/Formula/tbl.rb @@ -0,0 +1,26 @@ +class Tbl < Formula + desc "A swiss army knife for parquet read and write operations" + homepage "https://github.com/paradigmxyz/tbl" + url "https://github.com/paradigmxyz/tbl.git", + tag: "0.1.1", + revision: "4edd598592f6c8bca30e04de6b49b1214d3e9dc5" + license any_of: ["Apache-2.0", "MIT"] + head "https://github.com/paradigmxyz/tbl.git", branch: "main" + + livecheck do + url :stable + regex(/^v?(\d+(?:\.\d+)+)$/i) + end + + depends_on "rust" => :build + + def install + cd "crates/tbl-cli" do + system "cargo", "install", *std_cargo_args + end + end + + test do + system "#{bin}/tbl", "--help" + end +end