mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-12 01:45:14 +02:00
fix(cli): reclaim the hidden legacy-uri positional for operator aliases
Caught on the live smoke: with --alias, the first bare CLI arg lands in
the hidden legacy_uri positional, so an operator alias's positional param
never bound ('parameter not provided' from the server). An operator alias
always knows its target, so the existing normalize_legacy_alias_uri
reclaims the swallowed positional as the first alias arg — same rule the
legacy path already applies.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
dc91c55970
commit
20ddfc61c1
1 changed files with 9 additions and 0 deletions
|
|
@ -758,6 +758,15 @@ async fn main() -> Result<()> {
|
|||
"warning: alias '{alias_name}' is defined in both omnigraph.yaml (legacy, wins during the deprecation window) and the operator config; the legacy definition applies"
|
||||
);
|
||||
} else {
|
||||
// The hidden legacy-uri positional swallows the first
|
||||
// bare arg; an operator alias always knows its target,
|
||||
// so reclaim it as the first positional param.
|
||||
let (_, alias_args) = normalize_legacy_alias_uri(
|
||||
legacy_uri.clone(),
|
||||
true,
|
||||
Some(alias_name),
|
||||
alias_args.clone(),
|
||||
);
|
||||
let output = execute_operator_alias(
|
||||
&http_client,
|
||||
&config,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue