-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsv-utils.rb
30 lines (27 loc) · 881 Bytes
/
tsv-utils.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# typed: false
# frozen_string_literal: true
class TsvUtils < Formula
desc "Utilities for tabular data files"
homepage "https://github.com/eBay/tsv-utils"
url "https://github.com/eBay/tsv-utils/releases/download/v2.2.1/tsv-utils-v2.2.1_osx-x86_64_ldc2.tar.gz"
version "2.2.1"
sha256 "22bf77c6475570640c04cc8cd9b2e662499c5512cc35043cb4e3ddb511d52279"
def install
bin.install "bin/csv2tsv"
bin.install "bin/keep-header"
bin.install "bin/number-lines"
bin.install "bin/tsv-append"
bin.install "bin/tsv-filter"
bin.install "bin/tsv-join"
bin.install "bin/tsv-pretty"
bin.install "bin/tsv-sample"
bin.install "bin/tsv-select"
bin.install "bin/tsv-split"
bin.install "bin/tsv-summarize"
bin.install "bin/tsv-uniq"
bash_completion.install "bash_completion/tsv-utils"
end
test do
system "#{bin}/csv2tsv"
end
end