Mogh Config
Module for comprehensive loading of strongly typed configuration files using std::fs and serde.
- Supports parsing JSON, YAML, and TOML formatted files.
- Supports merging final configuration from multiple supplied files / directories.
- Supports
${ENV_VAR}and$(shell_command)interpolation in values.
Priority (later overrides earlier): paths in order given. Within a directory,
its own files (by wildcard, then name), then each path in the include file in
the order listed, recursively, so includes override the directory's own files.
let config =
.
.expect;