pub type CommandCallback = Box<dyn Fn(&Context) -> Result<(), ClickError> + Send + Sync>;Expand description
Type for command callbacks.
The callback receives a reference to the Context containing parsed
parameter values and returns a Result indicating success or failure.
Aliased Typeยง
pub struct CommandCallback(/* private fields */);