Skip to content

Fix CLI parsing and completion of union leafrefs - #696

Open
yamontv wants to merge 1 commit into
clicon:masterfrom
yamontv:fix-union-leafref-cli
Open

yamontv wants to merge 1 commit into
clicon:masterfrom
yamontv:fix-union-leafref-cli

Conversation

@yamontv

@yamontv yamontv commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

This fixes two issues in autogenerated CLI commands using unions of leafrefs:

  • Imported typedef completion resolves prefixes in the module defining the leafref path, while preserving the consuming node’s namespace for unprefixed names.
  • Union arguments no longer consume following child commands. For example, set endpoint p1 cost 10 stores p1 as the key and 10 as the cost.

Completion priority is preserved to avoid ambiguity with other union alternatives.

Keep union values within one CLI token and preserve completion priority.
Resolve explicit prefixes in the defining module while retaining the
consuming namespace for unprefixed names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant