Skip to main content

Module preset

Module preset 

Source
Expand description

Configuration presets used by slopguard init.

A preset renders a complete slopguard.toml. The rule id lists are derived from the builtin ruleset at render time, so a preset can never name a rule that no longer ships.

Structs§

PresetIter
An iterator over the variants of Preset

Enums§

Preset
A named starting configuration for a project.

Functions§

parse_preset
Parse a preset name (the --preset <name> value), returning an error message that lists the valid names. Keeps the name list on the core enum so the CLI never maintains its own copy.
presets_help
The preset listing printed by slopguard init --preset with no value.