run method

Future<void> run(
  1. Task task
)

Implementation

Future<void> run(Task task) async {
  for (final step in task.steps) {
    if (step is VariablesStep) handleVariablesStep(step);
    if (step is AskStep) handleAskStep(step.key, step.prompt);
    if (step is JavascriptStep) handleJavascriptStep(step.run);
    if (step is CommandStep) handleCommandStep(step.run);
    if (step is WriteStep) handleWriteStep(step);
    if (step is ReadStep) handleReadStep(step);
    if (step is RunTaskStep) await handleRunTaskStep(step);
  }
}