Add gitbay formula !1
1 file changed, +19 −0
Layout: unified · split
Formula/gitbay.rb added +19
| @@ -0,0 +1,19 @@ | |||
| 1 | class Gitbay < Formula | ||
| 2 | desc "CLI for gitbay, the CLI-first git forge" | ||
| 3 | homepage "https://gitbay.org" | ||
| 4 | url "https://gitbay.org/krz/gitbay.git", | ||
| 5 | tag: "v0.1.0", | ||
| 6 | revision: "861b98f2f9ab341e95fd7b4a25fea9d1a7669513" | ||
| 7 | license "ISC" | ||
| 8 | head "https://gitbay.org/krz/gitbay.git", branch: "main" | ||
| 9 | |||
| 10 | depends_on "go" => :build | ||
| 11 | |||
| 12 | def install | ||
| 13 | system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/gitbay" | ||
| 14 | end | ||
| 15 | |||
| 16 | test do | ||
| 17 | assert_match "forge", shell_output("#{bin}/gitbay --help") | ||
| 18 | end | ||
| 19 | end | ||