Skip to content
40 linesCodeBlameRaw
1# Generated by scripts/cli-homebrew.mjs from a verified release manifest.
2class G1t < Formula
3 desc "Work with g1t repositories, issues and pull requests"
4 homepage "https://g1t.sh"
5 version "0.3.7"
6 license "MIT"
7
8 on_macos do
9 on_arm do
10 url "https://g1t.sh/downloads/cli/0.3.7/g1t-macos-arm64", using: :nounzip
11 sha256 "f3b51a8025a64e0439af5685cc7498c1e76012cfb953754c689b3413f5f45dc6"
12 end
13 on_intel do
14 url "https://g1t.sh/downloads/cli/0.3.7/g1t-macos-x64", using: :nounzip
15 sha256 "6a8663699476d676b3d7781e03ea5588f0896f8394835677ee21e5c8a407e3ed"
16 end
17 end
18
19 on_linux do
20 on_arm do
21 url "https://g1t.sh/downloads/cli/0.3.7/g1t-linux-arm64", using: :nounzip
22 sha256 "146c9f3e7c96fdf3d378893d562d7ac03a9d2c876949a9f70d4dd47aaef0cb8d"
23 end
24 on_intel do
25 url "https://g1t.sh/downloads/cli/0.3.7/g1t-linux-x64", using: :nounzip
26 sha256 "099eb3aba3d2076e497107c6edbff74f8f6b18cfbadf4f577f6b42fd94e16396"
27 end
28 end
29
30 def install
31 os = OS.mac? ? "macos" : "linux"
32 arch = Hardware::CPU.arm? ? "arm64" : "x64"
33 bin.install "g1t-#{os}-#{arch}" => "g1t"
34 end
35
36 test do
37 assert_match version.to_s, shell_output("#{bin}/g1t --version")
38 assert_match "Usage:", shell_output("#{bin}/g1t issue --help")
39 end
40end