mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-27 02:39:38 +02:00
fix(config,cli): reject --resolved+--show-origin; drop dead ActiveContext.server
config view --resolved --show-origin silently dropped --show-origin; add clap conflicts_with so the parser rejects the combo loudly. Remove the unused `server` field from ActiveContext (parsed, always written None, never read) — server-qualified active context is a V2/V3 concern; don't ship an unfulfilled field.
This commit is contained in:
parent
c7c82beafb
commit
922666fc70
3 changed files with 20 additions and 10 deletions
|
|
@ -533,7 +533,7 @@ enum ConfigCommand {
|
|||
#[arg(long)]
|
||||
config: Option<PathBuf>,
|
||||
/// Resolve the named graph (or `defaults.graph`) to its typed locator.
|
||||
#[arg(long)]
|
||||
#[arg(long, conflicts_with = "show_origin")]
|
||||
resolved: bool,
|
||||
/// Annotate each value with the layer (global/project) it came from.
|
||||
#[arg(long = "show-origin")]
|
||||
|
|
@ -3166,7 +3166,6 @@ async fn main() -> Result<()> {
|
|||
resolved.resolve_graph(None, Some(&graph))?;
|
||||
write_active_context(&ActiveContext {
|
||||
graph: graph.clone(),
|
||||
server: None,
|
||||
})?;
|
||||
println!("active graph set to '{graph}'");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue