Skip to content

Commit b13c074

Browse files
committed
Add more run_locally params
1 parent 3666878 commit b13c074

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/Import/MamlRecipe.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ private function schema(): SchemaType
6767

6868
$runLocally = S::object([
6969
'run_locally' => S::string(),
70+
'cwd' => S::optional(S::string()),
71+
'timeout' => S::optional(S::number()),
72+
'idleTimeout' => S::optional(S::number()),
73+
'secrets' => S::optional(S::map(S::string())),
74+
'env' => S::optional(S::map(S::string())),
75+
'nothrow' => S::optional(S::boolean()),
76+
'forceOutput' => S::optional(S::boolean()),
77+
'shell' => S::optional(S::string()),
7078
]);
7179

7280
$upload = S::object([
@@ -340,6 +348,14 @@ private function createTask(string $name, ArrayNode $array, string $desc)
340348
try {
341349
runLocally(
342350
$step['run_locally'],
351+
cwd: $step['cwd'] ?? null,
352+
timeout: $step['timeout'] ?? null,
353+
idleTimeout: $step['idleTimeout'] ?? null,
354+
secrets: $step['secrets'] ?? null,
355+
env: $step['env'] ?? null,
356+
forceOutput: $step['forceOutput'] ?? false,
357+
nothrow: $step['nothrow'] ?? false,
358+
shell: $step['shell'] ?? null,
343359
);
344360
} catch (\Throwable $e) {
345361
$this->wrapException($e, $property->span);

0 commit comments

Comments
 (0)