omnigraph/crates/omnigraph-cli
Ragnor Comerford b47e3bbc70
Route registry selection through one shared query_entries_for
The "which queries: block applies for graph X" rule existed twice — the
server boot path and the CLI's registry_entries — and had already drifted:
the CLI carried an unreachable unwrap_or_else fallback the server lacked.

Add OmnigraphConfig::query_entries_for(graph: Option<&str>) as the single
definition (named graph -> its per-graph block; otherwise top-level) and
route all three sites through it: server single mode, server multi-graph
loop, and the CLI. The CLI's dead fallback arm is deleted; CLI and server
now resolve identically by construction.

No behavior change. Extends the config round-trip test to pin the selector,
including the unknown-name -> top-level fallback the deleted CLI arm covered.
2026-05-30 21:53:07 +02:00
..
src Route registry selection through one shared query_entries_for 2026-05-30 21:53:07 +02:00
tests Add omnigraph queries validate and queries list CLI 2026-05-30 20:54:20 +02:00
Cargo.toml Rename repo terminology to graph (#118) 2026-05-24 16:46:00 +01:00