onRun<O extends OptionDefinition, T> static method
Creates a CommandMiddleware with the given onRun hook.
Implementation
static CommandMiddleware<O, T> onRun<O extends OptionDefinition, T>(
final OnRun<CommandContext<O, T>> onRun,
) {
return withHooks(onRun: onRun);
}