Skip to main content

Module config

Module config 

Source
Expand description

Strict, independent TUI configuration (tui.toml).

The file lives at ~/.cookie-agent/tui.toml. There is no workspace layer or environment variable override. A missing file yields defaults; a malformed file or any unknown key fails with an actionable path/key error. Error messages quote the file’s location and the offending key or TOML parse context, never file contents.

Structs§

TuiConfig
Parsed TUI configuration with all defaults applied.

Enums§

ThemePreference
TuiConfigError

Constants§

CONFIG_FILE_NAME

Functions§

config_path
The platform config path for this process environment.
load
Load from the platform config path, or an explicit override path.
load_from
Load the config from an explicit path. A missing file yields defaults.
parse
Parse TOML text strictly. Unknown keys, wrong types, and invalid enum values are errors naming the offending key; the input text is never echoed back.