macro_rules! string_handler {
($(#[$attr:meta])* $vis:vis fn $name:ident(($first:ident, $second:ident), $out:ident, $data:ident) $body:block) => { ... };
($(#[$attr:meta])* $vis:vis fn $name:ident($input:ident, $out:ident, $data:ident) $body:block) => { ... };
($(#[$attr:meta])* $vis:vis fn $name:ident($action:ident, $input:ident, $out:ident, $data:ident) $body:block) => { ... };
}Expand description
Define a command or prompt callback with a &str input and &mut Output.
The four-argument form also supports runtime-action trampolines. A tuple
input (cwd, reason) supports resource-discovery callbacks. All forms copy
inputs inside the ABI boundary and contain handler panics.