Skip to main content

Module hooks_render

Module hooks_render 

Source
Expand description

Render the gate registry as pre-commit hook entries.

One renderer serves both deliveries: the managed block spliced into an instance’s configuration, and the manifest published to consumers who install this repository as a pre-commit repo. Rendering both from the registry is what keeps a gate from reaching one delivery and missing the other. What the registry contains is gates’ business; where the output lands is the caller’s.

Structs§

RenderOptions
Everything a render depends on.

Enums§

Style
The two output shapes.

Functions§

render_block
Render the complete managed block an instance’s configuration carries: markers, the verifier hook, and every gate.
render_gates
Render the gate entries alone, in the requested style.