pub type ExecFunc = Box<dyn Fn(&Ctx, &ExecContext, &mut Map<String, Value>, &mut dyn FnMut(&mut Map<String, Value>) -> Result<()>) -> Result<()> + Send + Sync>;Expand description
Execute 中间件:args 是已解析的入参 map(flag、env 与位置参数已应用); next(&mut args) 续链到 Invoke + 渲染(可多次调用)。返回值语义与命令 错误一致(按分类映射退出码)。
Aliased Type§
pub struct ExecFunc(/* private fields */);