public static IStepExecutor Create(Step step, StepContext context) { var executor = new StepExecutor(step, context); executor.Node = context.WorkflowContext.GetNode(step.Node); executor.Shell = context.Node.CreateShell(step.Shell); executor.Output = new ConsoleOutput(); return(executor); }
public static Task <StepResult> Run(this Step step, StepContext context) { return(StepExecutor.Create(step, context).Run()); }