pub type NativeCmd = Box<dyn Fn(&[String]) -> i32 + Send + Sync>;Expand description
A native command body: the full argv (argv[0] is the command name, as invoked) in, a wait-status-style exit code out.
Taking argv[0] rather than only the operands is what lets a runtime keep
its own argv[0]-dependent behaviour — zvcs dispatches git-<verb> off
its own name (dashed_subcommand), and its diagnostics are prefixed with
it.
Aliased Type§
pub struct NativeCmd(/* private fields */);