Skip to main content

find

Function find 

Source
pub fn find(command: &str) -> Option<&'static LocalCommand>
Expand description

The entry for a command, by the words a person types after majordomus.

use majordomus_cli::cli::local::find;
assert!(find("serve").is_some());
assert!(find("capabilities list").is_none(), "that one is a capability");