Skip to main content

Module hooks

Module hooks 

Source
Expand description

hooks subcommand: runtime-shape.

Renders the managed block from the registry and the project’s declaration, and writes it into the target’s configuration on request. What the render contains is the renderer’s business; this handler projects the flags, resolves the declaration, and owns the write.

--apply exists because nothing else reaches the block after an ordinary declaration edit. sdd upgrade returns early at the same version, and a render to stdout changes no file, so without this a project could edit its declaration and see nothing happen. The declaration also selects the writing-style route the documentation block in AGENTS.md carries, so --apply and --check reach that block too: one verb brings every managed region back into agreement with the declaration.

Constants§

AGENTS
Where the documentation block lives in a target.
CONFIG
Where a pre-commit configuration lives in a target.

Functions§

run
Render the delivered gate set, and optionally write it.