addAction method

void addAction(
  1. String actionName,
  2. ActionRun run, {
  3. String? description,
})

Implementation

void addAction(String actionName, ActionRun run, {String? description}) {
  runner.addCommand(ActionCommand(
    name: actionName,
    description: description ?? actionName,
    actionRun: run,
    requestArgs: requestArgs,
    runnerName: runner.executableName,
  ));
}