mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-07-03 02:51:04 +02:00
refactor(config): extract load_single_layer; add Layer/Provenance + dirs
Split the body of load_config_in into a load_single_layer(cwd, path) helper that loads and fully processes one config file (version-gating, legacy scan, normalize) — the seam the upcoming layered loader needs — while load_config_in keeps its exact single-layer semantics (an explicit --config still errors on a missing file). Add the precedence-ordered Layer enum (Default < Global < State < Project) and a Provenance side-table newtype for the merge engine, plus the dirs dependency (already in the lock tree via lance, so zero new crates). No behavior change.
This commit is contained in:
parent
14736a9ca5
commit
349673283a
4 changed files with 115 additions and 62 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -4604,6 +4604,7 @@ version = "0.6.1"
|
|||
dependencies = [
|
||||
"clap",
|
||||
"color-eyre",
|
||||
"dirs",
|
||||
"serde",
|
||||
"serde_ignored",
|
||||
"serde_yaml",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue