docs: document onPost binary hooks#155
Merged
Merged
Conversation
- docs/b/subcommands/install.mdx — new "Post-install hooks" section with --on-post flag, env vars table, b.yaml examples, and behaviour notes. Added --on-post to the flags table. - docs/b/subcommands/update.mdx — "Post-update hooks" section referencing install docs. - docs/getting-started.mdx — onPost example in the config walkthrough. - docs/glossary.mdx — onPost term definition. - README.md — --on-post CLI example + onPost in config example. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds end-user documentation for the per-binary onPost hook feature so users can configure post-install/post-update commands via CLI (--on-post) and b.yaml.
Changes:
- Documented
onPosthooks inb installdocs, including env vars, examples, and the--on-postflag. - Documented that
onPostalso runs duringb update, with a cross-reference back to install docs. - Added
onPostreferences/examples across getting started, glossary, and README.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds a quick-use CLI example and config snippet showing onPost. |
| docs/glossary.mdx | Adds a glossary definition for onPost. |
| docs/getting-started.mdx | Adds an onPost example to the config walkthrough. |
| docs/b/subcommands/update.mdx | Adds a “Post-update hooks” section and cross-link to install docs. |
| docs/b/subcommands/install.mdx | Adds a “Post-install hooks” section, env var table, examples, and documents --on-post. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot review on #155: 1. Clarify hooks run in the project root directory so relative paths in examples (e.g. .completions/) make sense. 2. Remove implication that 'b install --dry-run' exists; clarify the skip applies to 'b update --dry-run' and '--plan-json'. 3. Glossary onPost entry now bold-links to onPreSync/onPostSync entries defined immediately below. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documentation for the
onPostper-binary hook feature (PR #153).Changes
--on-postflag, env vars table (B_EVENT,B_NAME,B_VERSION,B_FILE),b.yamlexamples, and behaviour notes (POSIX-only, non-fatal, stderr output). Added--on-postto the flags table.onPostalso fires on update, with a cross-reference to the install docs.onPostexample in the config walkthrough.onPostterm definition.--on-postCLI example in the quick-use block +onPostin the config example section.🤖 Generated with Claude Code