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§
Functions§
- longest_
common_ prefix - Return the longest string that is a common prefix of all
candidates. Returns an empty string whencandidatesis empty or contains no common prefix. - parse
- Parse
inputinto (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
Nonewhen the path refers to a group without a runnable command.