Skip to main content

Module config

Module config 

Source

Enums§

ConfigError

Functions§

append_abbr_to_file
Append an abbreviation rule to a config file.
default_config_path
Default config file path: $XDG_CONFIG_HOME/runex/config.toml, falling back to ~/.config/runex/config.toml when XDG_CONFIG_HOME is unset. All platforms use this same resolution order. Overridden by RUNEX_CONFIG env var.
load_config
Load config from a file path.
parse_config
Parse a TOML string into a Config.
read_config_source
Read a config file into a string with the same safety guarantees as load_config: single fd for metadata+read (no TOCTOU), rejects symlinks at final path component on Unix, rejects non-regular files (FIFO / device nodes), and enforces the 10 MB size cap.
remove_abbr_from_file
Remove all abbreviation rules with the given key from a config file.