From c3101ff5f16e16c2465c957d0c70a6bc0f0d3ae4 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Mon, 20 Oct 2025 15:28:35 -0700 Subject: [PATCH] Add Homebrew formula for 0.10.0 --- bd-formula-0.10.0.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 bd-formula-0.10.0.rb diff --git a/bd-formula-0.10.0.rb b/bd-formula-0.10.0.rb new file mode 100644 index 00000000..f872255b --- /dev/null +++ b/bd-formula-0.10.0.rb @@ -0,0 +1,29 @@ +class Bd < Formula + desc "AI-supervised issue tracker for coding workflows" + homepage "https://github.com/steveyegge/beads" + url "https://github.com/steveyegge/beads/archive/refs/tags/v0.10.0.tar.gz" + sha256 "9279266d01840e6421d61fdc5240dbd19e85089f4a373b5d42ecaff74045d0c9" + license "MIT" + head "https://github.com/steveyegge/beads.git", branch: "main" + + depends_on "go" => :build + + def install + # Build the CLI + system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}"), "./cmd/bd" + end + + test do + # Test that the binary runs and outputs version + output = shell_output("#{bin}/bd version") + assert_match "bd version #{version}", output + + # Test init command + system bin/"bd", "init", "--prefix=test" + assert_predicate testpath/".beads/test.db", :exist? + + # Test list command (should show no issues) + list_output = shell_output("#{bin}/bd list --db=#{testpath}/.beads/test.db") + assert_match "Found 0 issues", list_output + end +end