pub fn unbacked(
registry: &CapabilityRegistry,
tree: &CommandDoc,
) -> Vec<Unbacked>Expand description
Every runnable command of the command line that no capability claims, in command order.
let registry = CapabilityRegistry::builder()
.with_modules(majordomus_cli::capability::builtin::modules())
.build()
.unwrap();
let debt = closure::unbacked(®istry, &majordomus_cli::cli::tree());
// `serve` starts a process and is not a capability; it is in the inventory by design
assert!(debt.iter().any(|u| u.command == "majordomus serve"));