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§
- Render
Options - 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.