@polka-codes/cli-shared 0.9.37 → 0.9.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51277,6 +51277,13 @@ class StepsBuilder {
|
|
|
51277
51277
|
step
|
|
51278
51278
|
});
|
|
51279
51279
|
}
|
|
51280
|
+
loop(id, config2) {
|
|
51281
|
+
return this.step({
|
|
51282
|
+
...config2,
|
|
51283
|
+
id,
|
|
51284
|
+
type: "loop"
|
|
51285
|
+
});
|
|
51286
|
+
}
|
|
51280
51287
|
custom(idOrSpec, run) {
|
|
51281
51288
|
if (typeof idOrSpec === "string") {
|
|
51282
51289
|
if (!run) {
|
|
@@ -51290,6 +51297,13 @@ class StepsBuilder {
|
|
|
51290
51297
|
}
|
|
51291
51298
|
return this.step(idOrSpec);
|
|
51292
51299
|
}
|
|
51300
|
+
workflow(id, config2) {
|
|
51301
|
+
return this.step({
|
|
51302
|
+
...config2,
|
|
51303
|
+
id,
|
|
51304
|
+
type: "workflow"
|
|
51305
|
+
});
|
|
51306
|
+
}
|
|
51293
51307
|
agent(id, spec2) {
|
|
51294
51308
|
return this.step({
|
|
51295
51309
|
...spec2,
|
|
@@ -51297,6 +51311,13 @@ class StepsBuilder {
|
|
|
51297
51311
|
type: "agent"
|
|
51298
51312
|
});
|
|
51299
51313
|
}
|
|
51314
|
+
branch(id, config2) {
|
|
51315
|
+
return this.step({
|
|
51316
|
+
...config2,
|
|
51317
|
+
id,
|
|
51318
|
+
type: "branch"
|
|
51319
|
+
});
|
|
51320
|
+
}
|
|
51300
51321
|
}
|
|
51301
51322
|
// src/config.ts
|
|
51302
51323
|
var import_lodash3 = __toESM(require_lodash(), 1);
|