Skip to main content

build_form

Function build_form 

Source
pub fn build_form(
    _node: &CommandNode,
    path: &[String],
    args: &[(String, String)],
) -> Result<Option<String>, CommandError>
Expand description

Attempt to build a nomiscript form for node given path and args.

path is the full resolved command path (e.g. ["account", "list"]), used to disambiguate leaves that share a name across different parents.

Returns Ok(Some(form)) for eval-able leaves, Ok(None) when the leaf is intentionally handled outside the eval path (modal / status), and Err when a required arg is missing or malformed.