diff --git a/Formula/fgj-sid.rb b/Formula/fgj-sid.rb deleted file mode 100644 index 93917ec..0000000 --- a/Formula/fgj-sid.rb +++ /dev/null @@ -1,29 +0,0 @@ -class FgjSid < Formula - desc "Forgejo/Gitea CLI tool - like gh for GitHub, but for Forgejo and Gitea" - homepage "https://forgejo.zerova.net/public/fgj-sid" - license "MIT" - - url "ssh://git@forgejo.zerova.net/public/fgj-sid.git", - tag: "v0.3.0f", - revision: "c2251d9932b9bc3014233f97cfe1c43249a0e22c" - head "ssh://git@forgejo.zerova.net/public/fgj-sid.git", branch: "main" - - depends_on "go" => :build - - def install - ldflags = "-s -w" - system "go", "build", *std_go_args(ldflags:) - - generate_completions_from_executable(bin/"fgj", "completion") - - # Generate man pages - mkdir "man" do - system bin/"fgj", "manpages", "--dir", "." - man1.install Dir["*.1"] - end - end - - test do - assert_match "0.3.0f", shell_output("#{bin}/fgj --version") - end -end diff --git a/Formula/fj.rb b/Formula/fj.rb new file mode 100644 index 0000000..d441b0b --- /dev/null +++ b/Formula/fj.rb @@ -0,0 +1,29 @@ +class Fj < Formula + desc "Forgejo/Gitea CLI tool - like gh for GitHub, but for Forgejo and Gitea" + homepage "https://forgejo.zerova.net/public/fj" + license "MIT" + + url "ssh://git@forgejo.zerova.net/public/fj.git", + tag: "v0.3.2", + revision: "25868adcad2af584b34032ebd034c4a070baaa43" + head "ssh://git@forgejo.zerova.net/public/fj.git", branch: "main" + + depends_on "go" => :build + + def install + ldflags = "-s -w" + system "go", "build", *std_go_args(ldflags:) + + generate_completions_from_executable(bin/"fj", "completion") + + # Generate man pages + mkdir "man" do + system bin/"fj", "manpages", "--dir", "." + man1.install Dir["*.1"] + end + end + + test do + assert_match "0.3.2", shell_output("#{bin}/fj --version") + end +end diff --git a/README.md b/README.md index 2d6dd3b..a5cd956 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,12 @@ brew tap public/sid git@forgejo.zerova.net:public/homebrew-sid.git | Formula | Description | |---------|-------------| -| [fgj-sid](https://forgejo.zerova.net/public/fgj-sid) | Forgejo/Gitea CLI tool with agentic dev features (fork) | +| [fj](https://forgejo.zerova.net/public/fj) | Forgejo/Gitea CLI tool with agentic dev features (fork) | | [tinc-feth](https://forgejo.zerova.net/public/tinc-feth) | tinc 1.0.37 VPN with macOS feth device support | | qemu-iscsi | QEMU built with `--enable-libiscsi` (iSCSI block backend) | ```bash -brew install fgj-sid +brew install fj brew install tinc-feth brew install qemu-iscsi ```