Skip to main content

validate

Function validate 

Source
pub fn validate(tree: &CommandDoc) -> Vec<Violation>
Expand description

Every violation in the tree, in command order, then in example order. An empty result is the contract met.

// the command line this crate declares documents itself completely
assert!(majordomus_cli::cli::validate(&majordomus_cli::cli::tree()).is_empty());