-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathczid-cli.rb
51 lines (44 loc) · 1.54 KB
/
czid-cli.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CzidCli < Formula
desc "A CLI for uploading samples to Chan Zuckerberg ID"
homepage "https://github.com/chanzuckerberg/czid-cli"
version "6.0.0"
on_macos do
on_intel do
url "https://github.com/chanzuckerberg/czid-cli/releases/download/v6.0.0/czid-cli_darwin_amd64.tar.gz"
sha256 "073b9e317eb37b3b0f5058f281de6cf58b4df525669c64ed025f5a889ed4f2b1"
def install
bin.install "czid"
bash_completion.install "bash_completion" => "czid"
zsh_completion.install "zsh_completion" => "_czid"
end
end
on_arm do
url "https://github.com/chanzuckerberg/czid-cli/releases/download/v6.0.0/czid-cli_darwin_arm64.tar.gz"
sha256 "8f17e1c8c6a85618b051683dd5745af43f2c738d07c8e743fea37336ffb93160"
def install
bin.install "czid"
bash_completion.install "bash_completion" => "czid"
zsh_completion.install "zsh_completion" => "_czid"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/chanzuckerberg/czid-cli/releases/download/v6.0.0/czid-cli_linux_amd64.tar.gz"
sha256 "ebb45b24429a79c6d026f2fb8d8439154f23e622969536e62401a6e8981f2141"
def install
bin.install "czid"
bash_completion.install "bash_completion" => "czid"
zsh_completion.install "zsh_completion" => "_czid"
end
end
end
end
test do
system "#{bin}/czid --version"
end
end