Skip to content

ci(release): generate shell completions in brew formula template#62

Merged
kengio merged 1 commit into
mainfrom
ci/completions-template
May 29, 2026
Merged

ci(release): generate shell completions in brew formula template#62
kengio merged 1 commit into
mainfrom
ci/completions-template

Conversation

@kengio
Copy link
Copy Markdown
Contributor

@kengio kengio commented May 29, 2026

Summary

The release workflow regenerates Formula/onebrain.rb from a heredoc template on every stable tag and PUTs it to onebrain-ai/homebrew-onebrain. This adds the completion-install line to that template:

def install
  bin.install "onebrain"
  generate_completions_from_executable(bin/"onebrain", "completions")
end

So every future release ships a formula whose brew install runs onebrain completions {bash,zsh,fish} and installs the scripts automatically.

Why also here (not just the tap)

The tap formula is auto-regenerated from this template each release. The companion PR homebrew-onebrain#1 patches the live v3.2.19 formula for immediate effect; this PR makes the change durable — without it, the next release would overwrite the tap edit.

Notes

🤖 Generated with Claude Code

Adds generate_completions_from_executable to the formula heredoc so each
release regenerates a formula that auto-installs completions. Keeps the tap
in sync with homebrew-onebrain#1 (which patched the live v3.2.19 formula).
@kengio kengio merged commit 471feef into main May 29, 2026
6 checks passed
@kengio kengio deleted the ci/completions-template branch May 29, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant