Skip to main content

Module palette

Module palette 

Source
Expand description

:-driven command palette. Parses a typed command string into (path, args), looks the path up in the shared cli_core command tree, and returns the runnable leaf the event layer should execute.

Grammar (matches the TUI’s prior single-pane mode so automation and interactive grammar agree):

word (word)* (key=value)*

word tokens identify the path (e.g. reports balance). key=value tokens become arguments. Values with embedded spaces are not currently supported — this matches the existing CLI grammar.

Structs§

PaletteQuery

Functions§

parse
Parse input into (path, args). Empty input yields an empty query.
resolve
Resolve a parsed query against the command tree. Returns the leaf node’s name and its argument list if the path is complete, or None when the path refers to a group without a runnable command.