We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07a947 commit c501b1dCopy full SHA for c501b1d
src/Console.php
@@ -34,6 +34,15 @@ public function loadPipeline(string $filename): PipelineConsoleRuntime
34
return $factory(new PipelineConsoleRuntime($this->output, $pipeline, $this->state->withPipeline(basename($filename))));
35
}
36
37
+ public function loadAction(string $filename): PipelineConsoleRuntime
38
+ {
39
+ $factory = require $filename;
40
+
41
+ $pipeline = new Pipeline($this->pipelineRunner);
42
43
+ return $factory(new PipelineConsoleRuntime($this->output, $pipeline, $this->state->withPipeline(basename($filename))));
44
+ }
45
46
public function job(RunnableInterface $job): self
47
{
48
$this->jobs[] = $job;
0 commit comments