Skip to content

docs(hook): use concurrent form in multi-key hook examples#2248

Merged
max-sixty merged 1 commit intomainfrom
hook-examples
Apr 15, 2026
Merged

docs(hook): use concurrent form in multi-key hook examples#2248
max-sixty merged 1 commit intomainfrom
hook-examples

Conversation

@max-sixty
Copy link
Copy Markdown
Owner

The wt hook page and tips/merge examples paired two [[pre-*]] blocks with one command each, which runs them serially. For independent commands like cargo fmt --check + cargo clippy, that taught the wrong lesson.

Collapsed each pair into a single [[pre-*]] block with both keys (runs concurrently). The multi-entry [pre-*] table form is deprecated (src/config/deprecation.rs), so the single-element array form is the non-deprecated way to express concurrent commands.

Affected: src/cli/mod.rs (merge local-CI, hook progressive-validation, hook-type-examples), docs/content/tips-patterns.md (local CI gate). Generated docs, skill mirrors, and help snapshots synced.

This was written by Claude Code on behalf of @max-sixty

The examples paired two [[pre-*]] blocks with one command each, which
runs them serially — misleading for independent commands like
`cargo fmt --check` + `cargo clippy`. Collapsed each pair into a single
[[pre-*]] block with both keys, which runs them concurrently.

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit d4c80ca into main Apr 15, 2026
26 checks passed
@max-sixty max-sixty deleted the hook-examples branch April 15, 2026 23:22
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.

2 participants