-
Notifications
You must be signed in to change notification settings - Fork 0
/
gotsrpc.rb
57 lines (49 loc) · 1.5 KB
/
gotsrpc.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
52
53
54
55
56
57
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Gotsrpc < Formula
desc "CLI utility to generate go and typescript RPC calls easily"
homepage "https://github.com/foomo/gotsrpc"
version "2.8.2"
on_macos do
on_intel do
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.2/gotsrpc_2.8.2_darwin_amd64.tar.gz"
sha256 "ca6c62c874d42cc55655e2f6d3c1efe1ef7757bb3c0abcd6fafe5156de39673d"
def install
bin.install "gotsrpc"
end
end
on_arm do
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.2/gotsrpc_2.8.2_darwin_arm64.tar.gz"
sha256 "eb9f9b351e7fbfa63fd47e678e24cb12373c845395d89fb7e2f5570dd47f91fa"
def install
bin.install "gotsrpc"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.2/gotsrpc_2.8.2_linux_amd64.tar.gz"
sha256 "6c784dac1b5ea8e4012846a4fc75377214ed68172dfbb954e04cd64a6bc7abf5"
def install
bin.install "gotsrpc"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gotsrpc/releases/download/v2.8.2/gotsrpc_2.8.2_linux_arm64.tar.gz"
sha256 "06858dc3de357ddb6a5c15804059fc1434ca751bbdeb28269303631665f2b639"
def install
bin.install "gotsrpc"
end
end
end
end
def caveats
<<~EOS
gotsrpc gotsrpc.yml
EOS
end
end