Skip to main content

Module hooks_render

Module hooks_render 

Source
Expand description

Render the gate registry as the managed pre-commit block.

The registry is the one declaration and this is its one delivery: the block an instance’s configuration carries, rendered at install time and never committed anywhere in between. A gate reaches an instance because it is in the registry, so it cannot reach the payload and miss the wiring. What the registry contains is gates’ business; where the output lands is the caller’s.

There is deliberately no second shape. A .pre-commit-hooks.yaml would serve repositories that never adopt this framework, and most gates read an instance layout those repositories do not have.

Structs§

RenderOptions
Everything a render depends on.

Functions§

render_block
Render the complete managed block an instance’s configuration carries: markers, the verifier hook, and every gate.
selectors
The files: and exclude: a hook entry declares, by hook id.