Presets¶
presets
¶
Preset badge registry — maps preset names to badge configuration.
| CLASS | DESCRIPTION |
|---|---|
Preset |
Configuration for a named badge preset. |
Preset(label: str, color: Union[BadgeColor, str], source: Optional[Callable[[Path], str]] = None, right_text: Optional[str] = None, right_color: str = '#555555', description: str = '')
dataclass
¶
Configuration for a named badge preset.
source is a callable (search_path: Path) -> str for data-wired presets.
When source=None, the CLI supplies a lambda at dispatch time (e.g., for
tests and coverage which require an explicit file path argument).