Skip to main content

Module config

Module config 

Source
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 from deps.toml.
IgnoreRule
One [update].ignore entry: a dependency name, optionally scoped to specific update kinds.
UpdateConfig
The [update] config section (#1119): deps-cli update’s ignore rules.

Enums§

ConfigError
Error loading or parsing a deps.toml file.
UpdateTypeToken
One update_types token in an [update].ignore entry.

Constants§

DEFAULT_CONFIG_FILENAME
Default config file name looked up relative to the current working directory when --config is not given (FR-014).

Functions§

apply_overrides
Applies --offline/--cooldown CLI overrides onto a loaded CliConfig for this run only (FR-015).
load
Loads CliConfig from explicit_path, or from DEFAULT_CONFIG_FILENAME inside default_dir when explicit_path is None.
safe_auto_discovered_config
Reduces a CliConfig loaded from an auto-discovered deps.toml to only the fields that cannot weaken what --fail-on observes (spec 062 review, F1 follow-up).