Expand description
User TOML configuration for f00.
Search order (first found wins):
--config PATHif provided$F00_CONFIGif set- Platform config dir:
- Unix:
$XDG_CONFIG_HOME/f00/config.tomlor~/.config/f00/config.toml(macOS viadirectories:~/Library/Application Support/f00/config.toml) - Windows:
%APPDATA%\f00\config.toml
- Unix:
Structs§
- Config
Defaults - Optional defaults from a TOML config file.
- File
Config - Root of
config.toml. Fields may live under[defaults]or at the root.
Functions§
- apply_
env_ overrides - Apply env overrides (
F00_GNU). - cli_
has_ long - Whether
flag(e.g.--iconsor--git) appears in process args. - config_
search_ paths - Paths to try when no
--configoverride is given. - invoked_
as_ ls - Detect whether the binary was invoked as
ls/ls.exe. - invoked_
as_ ls_ from - Testable argv0 check.
- load_
config_ from_ path - Load config from an explicit path.
- load_
user_ config - Load config: explicit path, else first existing search path, else
None. - merge_
config_ into_ args - Merge file defaults into CLI args.
- parse_
config_ str - Parse TOML text into a
FileConfig. - platform_
config_ path - Resolve the platform user config path (
…/f00/config.toml), if available. - resolve_
args - Resolve effective args after clap parse.