Expand description
CliConfig and deps.toml loading.
Reuses deps_core::policy_config::PolicyConfig — the same type deps-lsp’s
DepsConfig composes — so deps-cli never parses a second, independently-maintained
copy of the policy schema (constitution principle 1).
Structs§
- CliConfig
deps-cli’s own top-level configuration, loaded fromdeps.toml.
Enums§
- Config
Error - Error loading or parsing a
deps.tomlfile.
Constants§
- DEFAULT_
CONFIG_ FILENAME - Default config file name looked up relative to the current working directory when
--configis not given (FR-014).
Functions§
- apply_
overrides - Applies
--offline/--cooldownCLI overrides onto a loadedCliConfigfor this run only (FR-015). - load
- Loads
CliConfigfromexplicit_path, or fromDEFAULT_CONFIG_FILENAMEinsidedefault_dirwhenexplicit_pathisNone. - safe_
auto_ discovered_ policy - Reduces a policy loaded from an auto-discovered
deps.tomlto only the fields that cannot weaken what--fail-onobserves (spec 062 review, F1 follow-up).