Skip to main content

machine_verdict

Function machine_verdict 

Source
pub fn machine_verdict(node: &CommandNode) -> (Option<String>, bool)
Expand description

Whether a machine surface may carry this command, and the reason when it may not.

The reason is the product, not the boolean: it is what commands explain, the Cockpit’s disabled state and the completion’s filtering all show, and it is written once here.