Skip to main content

CliHandler

Type Alias CliHandler 

Source
pub type CliHandler<C> = fn(&ResolvedInvocation) -> Result<C, CliStop>;
Expand description

A handler bound to an action: the pure step from a resolved invocation to the program’s own command value. It runs before any output sink opens, so a refusal here never leaves a redirect file behind.