Repository navigation
Expand file tree
/
Copy pathcommitbrief.rb
More file actions
54 lines (48 loc) · 1.79 KB
/
Copy pathcommitbrief.rb
File metadata and controls
54 lines (48 loc) · 1.79 KB
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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Commitbrief < Formula
desc "LLM-powered local code review CLI"
homepage "https://github.com/CommitBrief/commitbrief"
version "1.21.2"
license "GPL-3.0-or-later"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/CommitBrief/commitbrief/releases/download/v1.21.2/commitbrief_1.21.2_darwin_x86_64.tar.gz"
sha256 "7f4580ed99f0f41d209defa6ab70fccd11c0ac708046808694ab95ba66b19648"
define_method(:install) do
bin.install "commitbrief"
man1.install Dir["man/*.1"]
end
end
if Hardware::CPU.arm?
url "https://github.com/CommitBrief/commitbrief/releases/download/v1.21.2/commitbrief_1.21.2_darwin_arm64.tar.gz"
sha256 "7a31759d18824b39a5d6877e163f0fc7c0e3cb29ee52f68ae7059aa3ab67c2e8"
define_method(:install) do
bin.install "commitbrief"
man1.install Dir["man/*.1"]
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/CommitBrief/commitbrief/releases/download/v1.21.2/commitbrief_1.21.2_linux_x86_64.tar.gz"
sha256 "548a7da5dd00895b2c94011e26b91743409f4853779aafc6b22e71ea43d3e897"
define_method(:install) do
bin.install "commitbrief"
man1.install Dir["man/*.1"]
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/CommitBrief/commitbrief/releases/download/v1.21.2/commitbrief_1.21.2_linux_arm64.tar.gz"
sha256 "6783bdcf02afc1e83d3e1e4558072fe14ef608e4a0aec243d03438975c24f2e1"
define_method(:install) do
bin.install "commitbrief"
man1.install Dir["man/*.1"]
end
end
end
test do
system "#{bin}/commitbrief", "--help"
end
end