Skip to main content

hooks_block

Function hooks_block 

Source
pub fn hooks_block(workflow: Workflow) -> String
Expand description

The hook block for one workflow mode.

Markers included, without a trailing newline and with its scope token unrendered. What is landed is what runs: the worktree mode’s block carries the location guard and names the sweep-skip pair, and the branches mode’s block carries no guard entry at all — never an entry that reads local state to decide whether to enforce. The one branch grammar substitutes here from BRANCH_GRAMMAR.