Skip to content

Refactor as a tree walk#105

Merged
DannyBen merged 4 commits into
masterfrom
refactor/tree-walk
Jul 2, 2026
Merged

Refactor as a tree walk#105
DannyBen merged 4 commits into
masterfrom
refactor/tree-walk

Conversation

@DannyBen

@DannyBen DannyBen commented Jul 2, 2026

Copy link
Copy Markdown
Member

This refactors pattern-config completion generation from route-list matching to a command tree walk.

  • Builds a tree model from patterns, preserving where option groups and positional tokens appear.
  • Generates a compact node-based walker instead of scanning every pattern route.
  • Makes option-group placement meaningful, so global options and command-specific options can be modeled separately.
  • Stops offering completions after an invalid or out-of-scope option is encountered.
  • Keeps numeric node IDs in the generated Bash for compact output, while using clearer node_* naming.
  • Updates pattern-config docs, examples, schema examples, and generated-script approvals.

@DannyBen DannyBen added this to the 0.8.0 milestone Jul 2, 2026
@DannyBen DannyBen merged commit 14ee9d8 into master Jul 2, 2026
6 checks passed
@DannyBen DannyBen deleted the refactor/tree-walk branch July 2, 2026 09:36
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