omnigraph/crates/omnigraph-cli/tests
Ragnor Comerford 059fbe4c4a
feat(config,cli): global-first layered config load
Add load_layered_config: load the global ~/.omnigraph/config.yaml layer under the
project ./omnigraph.yaml (or --config) layer and merge them, returning the merged
config, its provenance, and per-layer deprecation warnings. The CLI's load_cli_config
now uses it — so a graph/server/defaults defined only in the global config is usable
from any directory with no project file. The server stays single-layer (a deployment
manifest must not pick up ambient $HOME state).

Global and cwd-default files are optional (absent = no layer); an explicit project
--config still errors if missing. base_dir stays the highest loaded layer's config
dir so relative ad-hoc --query paths resolve as before. The CLI test harness pins
OMNIGRAPH_HOME to an empty temp dir so tests never read the developer's real global
config.
2026-06-05 11:31:10 +02:00
..
support feat(config,cli): global-first layered config load 2026-06-05 11:31:10 +02:00
cli.rs feat(config,cli): global-first layered config load 2026-06-05 11:31:10 +02:00
system_local.rs feat(cli,server): warn on deprecated config at load; scaffold version: 1 2026-06-04 08:48:04 +02:00
system_remote.rs fix(cli,server): correct remaining --target references to --graph 2026-06-04 08:56:39 +02:00