Skip to main content

Module presets

Module presets 

Source
Expand description

Embedded config.toml presets per docs/specs/config.md §Presets.

Presets are authored as TOML bodies shipped with the binary via include_str!. linesmith presets list prints names; linesmith presets apply <name> writes body to the resolved config path.

Functions§

body
Return the TOML body for a preset, or None if the name isn’t registered. Case-sensitive.
names
Preset display names in registry order.