Skip to content

Commit 5d1bc64

Browse files
chore(brew): update formulas for v0.2.0
1 parent 406c72c commit 5d1bc64

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

Formula/prt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Prt < Formula
22
desc "Open GitHub pull requests in isolated git worktrees"
33
homepage "https://github.com/BradyPlanden/prt"
4-
url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.1.1.tar.gz"
5-
sha256 "4db2e61f19fa4d82361b3b08278d146e822d5a23416b2f1571e8ad66305d0457"
4+
url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.2.0.tar.gz"
5+
sha256 "e0b908a952b01defac323d3e6a0f9073562cbefbf312f91d72ed953142067162"
66
license "MIT"
77

88
depends_on "go" => :build

Formula/prt@0.2.rb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
class PrtAT02 < Formula
2+
desc "Open GitHub pull requests in isolated git worktrees"
3+
homepage "https://github.com/BradyPlanden/prt"
4+
url "https://github.com/BradyPlanden/prt/archive/refs/tags/v0.2.0.tar.gz"
5+
sha256 "e0b908a952b01defac323d3e6a0f9073562cbefbf312f91d72ed953142067162"
6+
license "MIT"
7+
8+
keg_only :versioned_formula
9+
10+
depends_on "go" => :build
11+
12+
def install
13+
ldflags = %W[
14+
-s
15+
-w
16+
-X
17+
main.version=v#{version}
18+
]
19+
20+
system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/prt"
21+
end
22+
23+
test do
24+
assert_match "Open a GitHub PR", shell_output("#{bin}/prt --help")
25+
end
26+
end

0 commit comments

Comments
 (0)