Skip to main content

build_form

Function build_form 

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

Attempt to build a nomiscript form for the leaf at path given args.

Returns Ok(Some(form)) for eval-able leaves, Ok(None) when the leaf is handled outside the eval path (modal, tab switch or its own builder), and Err for an unknown, repeated or missing arg.