@copado/agentia-cli 0.76.0-alpha.0 → 0.77.0-alpha.0
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/README.md +165 -162
- package/dist/commands/cicd/work/commit.js +4 -4
- package/dist/commands/cicd/work/commit.js.map +1 -1
- package/dist/lib/mcp/work-tools.js +4 -4
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/setup-templates.d.ts +1 -1
- package/dist/lib/setup-templates.js +1 -1
- package/dist/lib/work-commit.d.ts +2 -0
- package/dist/lib/work-commit.js +2 -0
- package/dist/lib/work-commit.js.map +1 -1
- package/oclif.manifest.json +425 -425
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -2173,82 +2173,19 @@
|
|
|
2173
2173
|
"update.js"
|
|
2174
2174
|
]
|
|
2175
2175
|
},
|
|
2176
|
-
"cicd:
|
|
2177
|
-
"aliases": [],
|
|
2178
|
-
"args": {},
|
|
2179
|
-
"description": "Scaffold default Copado Function metadata and script without writing to Salesforce",
|
|
2180
|
-
"examples": [
|
|
2181
|
-
"<%= config.bin %> <%= command.id %> --name MyFunction",
|
|
2182
|
-
"<%= config.bin %> <%= command.id %> --name MyFunction --runtime python --json"
|
|
2183
|
-
],
|
|
2184
|
-
"flags": {
|
|
2185
|
-
"json": {
|
|
2186
|
-
"description": "Format output as json.",
|
|
2187
|
-
"helpGroup": "GLOBAL",
|
|
2188
|
-
"name": "json",
|
|
2189
|
-
"allowNo": false,
|
|
2190
|
-
"type": "boolean"
|
|
2191
|
-
},
|
|
2192
|
-
"image-name": {
|
|
2193
|
-
"description": "Function container image",
|
|
2194
|
-
"name": "image-name",
|
|
2195
|
-
"default": "copado-function-core:v1",
|
|
2196
|
-
"hasDynamicHelp": false,
|
|
2197
|
-
"multiple": false,
|
|
2198
|
-
"type": "option"
|
|
2199
|
-
},
|
|
2200
|
-
"name": {
|
|
2201
|
-
"description": "Function display name used to scaffold defaults",
|
|
2202
|
-
"name": "name",
|
|
2203
|
-
"required": true,
|
|
2204
|
-
"hasDynamicHelp": false,
|
|
2205
|
-
"multiple": false,
|
|
2206
|
-
"type": "option"
|
|
2207
|
-
},
|
|
2208
|
-
"runtime": {
|
|
2209
|
-
"description": "Script runtime",
|
|
2210
|
-
"name": "runtime",
|
|
2211
|
-
"default": "bash",
|
|
2212
|
-
"hasDynamicHelp": false,
|
|
2213
|
-
"multiple": false,
|
|
2214
|
-
"options": [
|
|
2215
|
-
"bash",
|
|
2216
|
-
"node",
|
|
2217
|
-
"python"
|
|
2218
|
-
],
|
|
2219
|
-
"type": "option"
|
|
2220
|
-
}
|
|
2221
|
-
},
|
|
2222
|
-
"hasDynamicHelp": false,
|
|
2223
|
-
"hiddenAliases": [],
|
|
2224
|
-
"id": "cicd:function:defaults",
|
|
2225
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
2226
|
-
"pluginName": "@copado/agentia-cli",
|
|
2227
|
-
"pluginType": "core",
|
|
2228
|
-
"strict": true,
|
|
2229
|
-
"enableJsonFlag": true,
|
|
2230
|
-
"isESM": true,
|
|
2231
|
-
"relativePath": [
|
|
2232
|
-
"dist",
|
|
2233
|
-
"commands",
|
|
2234
|
-
"cicd",
|
|
2235
|
-
"function",
|
|
2236
|
-
"defaults.js"
|
|
2237
|
-
]
|
|
2238
|
-
},
|
|
2239
|
-
"cicd:function:delete": {
|
|
2176
|
+
"cicd:job:get": {
|
|
2240
2177
|
"aliases": [],
|
|
2241
2178
|
"args": {
|
|
2242
|
-
"
|
|
2243
|
-
"description": "
|
|
2244
|
-
"name": "
|
|
2179
|
+
"id": {
|
|
2180
|
+
"description": "JobExecution Id",
|
|
2181
|
+
"name": "id",
|
|
2245
2182
|
"required": true
|
|
2246
2183
|
}
|
|
2247
2184
|
},
|
|
2248
|
-
"description": "
|
|
2185
|
+
"description": "Get a Copado job execution with ordered steps",
|
|
2249
2186
|
"examples": [
|
|
2250
|
-
"<%= config.bin %> <%= command.id %>
|
|
2251
|
-
"<%= config.bin %> <%= command.id %>
|
|
2187
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2188
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
2252
2189
|
],
|
|
2253
2190
|
"flags": {
|
|
2254
2191
|
"json": {
|
|
@@ -2261,7 +2198,7 @@
|
|
|
2261
2198
|
},
|
|
2262
2199
|
"hasDynamicHelp": false,
|
|
2263
2200
|
"hiddenAliases": [],
|
|
2264
|
-
"id": "cicd:
|
|
2201
|
+
"id": "cicd:job:get",
|
|
2265
2202
|
"pluginAlias": "@copado/agentia-cli",
|
|
2266
2203
|
"pluginName": "@copado/agentia-cli",
|
|
2267
2204
|
"pluginType": "core",
|
|
@@ -2272,23 +2209,23 @@
|
|
|
2272
2209
|
"dist",
|
|
2273
2210
|
"commands",
|
|
2274
2211
|
"cicd",
|
|
2275
|
-
"
|
|
2276
|
-
"
|
|
2212
|
+
"job",
|
|
2213
|
+
"get.js"
|
|
2277
2214
|
]
|
|
2278
2215
|
},
|
|
2279
|
-
"cicd:
|
|
2216
|
+
"cicd:job:kill": {
|
|
2280
2217
|
"aliases": [],
|
|
2281
2218
|
"args": {
|
|
2282
|
-
"
|
|
2283
|
-
"description": "
|
|
2284
|
-
"name": "
|
|
2219
|
+
"id": {
|
|
2220
|
+
"description": "JobExecution Id",
|
|
2221
|
+
"name": "id",
|
|
2285
2222
|
"required": true
|
|
2286
2223
|
}
|
|
2287
2224
|
},
|
|
2288
|
-
"description": "
|
|
2225
|
+
"description": "Cancel a Copado job execution",
|
|
2289
2226
|
"examples": [
|
|
2290
|
-
"<%= config.bin %> <%= command.id %>
|
|
2291
|
-
"<%= config.bin %> <%= command.id %>
|
|
2227
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2228
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
2292
2229
|
],
|
|
2293
2230
|
"flags": {
|
|
2294
2231
|
"json": {
|
|
@@ -2301,7 +2238,7 @@
|
|
|
2301
2238
|
},
|
|
2302
2239
|
"hasDynamicHelp": false,
|
|
2303
2240
|
"hiddenAliases": [],
|
|
2304
|
-
"id": "cicd:
|
|
2241
|
+
"id": "cicd:job:kill",
|
|
2305
2242
|
"pluginAlias": "@copado/agentia-cli",
|
|
2306
2243
|
"pluginName": "@copado/agentia-cli",
|
|
2307
2244
|
"pluginType": "core",
|
|
@@ -2312,21 +2249,18 @@
|
|
|
2312
2249
|
"dist",
|
|
2313
2250
|
"commands",
|
|
2314
2251
|
"cicd",
|
|
2315
|
-
"
|
|
2316
|
-
"
|
|
2252
|
+
"job",
|
|
2253
|
+
"kill.js"
|
|
2317
2254
|
]
|
|
2318
2255
|
},
|
|
2319
|
-
"cicd:
|
|
2256
|
+
"cicd:job:list": {
|
|
2320
2257
|
"aliases": [],
|
|
2321
2258
|
"args": {},
|
|
2322
|
-
"description": "List Copado
|
|
2259
|
+
"description": "List Copado job executions",
|
|
2323
2260
|
"examples": [
|
|
2324
2261
|
"<%= config.bin %> <%= command.id %>",
|
|
2325
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2326
|
-
"<%= config.bin %> <%= command.id %> --name
|
|
2327
|
-
"<%= config.bin %> <%= command.id %> --image-name copado-function-core:v1",
|
|
2328
|
-
"<%= config.bin %> <%= command.id %> --page-size 50",
|
|
2329
|
-
"<%= config.bin %> <%= command.id %> --cursor NEXT --json",
|
|
2262
|
+
"<%= config.bin %> <%= command.id %> --status \"In Progress\" --page-size 50",
|
|
2263
|
+
"<%= config.bin %> <%= command.id %> --name JE- --type Deploy --parent <parent-id>",
|
|
2330
2264
|
"<%= config.bin %> <%= command.id %> --json"
|
|
2331
2265
|
],
|
|
2332
2266
|
"flags": {
|
|
@@ -2351,43 +2285,58 @@
|
|
|
2351
2285
|
"multiple": false,
|
|
2352
2286
|
"type": "option"
|
|
2353
2287
|
},
|
|
2354
|
-
"
|
|
2355
|
-
"description": "
|
|
2356
|
-
"name": "
|
|
2288
|
+
"context": {
|
|
2289
|
+
"description": "Contains match on JobExecution context",
|
|
2290
|
+
"name": "context",
|
|
2291
|
+
"hasDynamicHelp": false,
|
|
2292
|
+
"multiple": false,
|
|
2293
|
+
"type": "option"
|
|
2294
|
+
},
|
|
2295
|
+
"id": {
|
|
2296
|
+
"description": "Exact JobExecution Id",
|
|
2297
|
+
"name": "id",
|
|
2357
2298
|
"hasDynamicHelp": false,
|
|
2358
2299
|
"multiple": false,
|
|
2359
2300
|
"type": "option"
|
|
2360
2301
|
},
|
|
2302
|
+
"mine": {
|
|
2303
|
+
"description": "List only jobs owned by the current user",
|
|
2304
|
+
"name": "mine",
|
|
2305
|
+
"allowNo": false,
|
|
2306
|
+
"type": "boolean"
|
|
2307
|
+
},
|
|
2361
2308
|
"name": {
|
|
2362
|
-
"description": "
|
|
2309
|
+
"description": "Contains match on JobExecution name",
|
|
2363
2310
|
"name": "name",
|
|
2364
2311
|
"hasDynamicHelp": false,
|
|
2365
2312
|
"multiple": false,
|
|
2366
2313
|
"type": "option"
|
|
2367
2314
|
},
|
|
2368
|
-
"
|
|
2369
|
-
"description": "
|
|
2370
|
-
"name": "
|
|
2315
|
+
"parent": {
|
|
2316
|
+
"description": "Exact parent record Id",
|
|
2317
|
+
"name": "parent",
|
|
2318
|
+
"hasDynamicHelp": false,
|
|
2319
|
+
"multiple": false,
|
|
2320
|
+
"type": "option"
|
|
2321
|
+
},
|
|
2322
|
+
"status": {
|
|
2323
|
+
"description": "Exact Copado job status",
|
|
2324
|
+
"name": "status",
|
|
2371
2325
|
"hasDynamicHelp": false,
|
|
2372
2326
|
"multiple": false,
|
|
2373
2327
|
"type": "option"
|
|
2374
2328
|
},
|
|
2375
2329
|
"type": {
|
|
2376
|
-
"description": "
|
|
2330
|
+
"description": "Contains match on Job Template name",
|
|
2377
2331
|
"name": "type",
|
|
2378
|
-
"default": "custom",
|
|
2379
2332
|
"hasDynamicHelp": false,
|
|
2380
2333
|
"multiple": false,
|
|
2381
|
-
"options": [
|
|
2382
|
-
"custom",
|
|
2383
|
-
"all"
|
|
2384
|
-
],
|
|
2385
2334
|
"type": "option"
|
|
2386
2335
|
}
|
|
2387
2336
|
},
|
|
2388
2337
|
"hasDynamicHelp": false,
|
|
2389
2338
|
"hiddenAliases": [],
|
|
2390
|
-
"id": "cicd:
|
|
2339
|
+
"id": "cicd:job:list",
|
|
2391
2340
|
"pluginAlias": "@copado/agentia-cli",
|
|
2392
2341
|
"pluginName": "@copado/agentia-cli",
|
|
2393
2342
|
"pluginType": "core",
|
|
@@ -2398,23 +2347,23 @@
|
|
|
2398
2347
|
"dist",
|
|
2399
2348
|
"commands",
|
|
2400
2349
|
"cicd",
|
|
2401
|
-
"
|
|
2350
|
+
"job",
|
|
2402
2351
|
"list.js"
|
|
2403
2352
|
]
|
|
2404
2353
|
},
|
|
2405
|
-
"cicd:
|
|
2354
|
+
"cicd:job:open": {
|
|
2406
2355
|
"aliases": [],
|
|
2407
2356
|
"args": {
|
|
2408
2357
|
"id": {
|
|
2409
|
-
"description": "
|
|
2358
|
+
"description": "JobExecution ID",
|
|
2410
2359
|
"name": "id",
|
|
2411
2360
|
"required": true
|
|
2412
2361
|
}
|
|
2413
2362
|
},
|
|
2414
|
-
"description": "Open a Copado
|
|
2363
|
+
"description": "Open a Copado job execution in the browser",
|
|
2415
2364
|
"examples": [
|
|
2416
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2417
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2365
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2366
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
2418
2367
|
],
|
|
2419
2368
|
"flags": {
|
|
2420
2369
|
"json": {
|
|
@@ -2427,7 +2376,7 @@
|
|
|
2427
2376
|
},
|
|
2428
2377
|
"hasDynamicHelp": false,
|
|
2429
2378
|
"hiddenAliases": [],
|
|
2430
|
-
"id": "cicd:
|
|
2379
|
+
"id": "cicd:job:open",
|
|
2431
2380
|
"pluginAlias": "@copado/agentia-cli",
|
|
2432
2381
|
"pluginName": "@copado/agentia-cli",
|
|
2433
2382
|
"pluginType": "core",
|
|
@@ -2438,24 +2387,23 @@
|
|
|
2438
2387
|
"dist",
|
|
2439
2388
|
"commands",
|
|
2440
2389
|
"cicd",
|
|
2441
|
-
"
|
|
2390
|
+
"job",
|
|
2442
2391
|
"open.js"
|
|
2443
2392
|
]
|
|
2444
2393
|
},
|
|
2445
|
-
"cicd:
|
|
2394
|
+
"cicd:job:pause": {
|
|
2446
2395
|
"aliases": [],
|
|
2447
2396
|
"args": {
|
|
2448
|
-
"
|
|
2449
|
-
"description": "
|
|
2450
|
-
"name": "
|
|
2397
|
+
"id": {
|
|
2398
|
+
"description": "JobExecution Id",
|
|
2399
|
+
"name": "id",
|
|
2451
2400
|
"required": true
|
|
2452
2401
|
}
|
|
2453
2402
|
},
|
|
2454
|
-
"description": "
|
|
2403
|
+
"description": "Pause a Copado job execution (resumable cancel alias)",
|
|
2455
2404
|
"examples": [
|
|
2456
|
-
"<%= config.bin %> <%= command.id %>
|
|
2457
|
-
"<%= config.bin %> <%= command.id %>
|
|
2458
|
-
"<%= config.bin %> <%= command.id %> ./myFunction.py --runtime python --platform linux/amd64"
|
|
2405
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2406
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
2459
2407
|
],
|
|
2460
2408
|
"flags": {
|
|
2461
2409
|
"json": {
|
|
@@ -2464,53 +2412,11 @@
|
|
|
2464
2412
|
"name": "json",
|
|
2465
2413
|
"allowNo": false,
|
|
2466
2414
|
"type": "boolean"
|
|
2467
|
-
},
|
|
2468
|
-
"cwd": {
|
|
2469
|
-
"description": "Host directory bind-mounted at /app inside the container (defaults to the current working directory)",
|
|
2470
|
-
"name": "cwd",
|
|
2471
|
-
"hasDynamicHelp": false,
|
|
2472
|
-
"multiple": false,
|
|
2473
|
-
"type": "option"
|
|
2474
|
-
},
|
|
2475
|
-
"image": {
|
|
2476
|
-
"char": "i",
|
|
2477
|
-
"description": "Docker image used to run the function. Override when the Copado image registry is unavailable (e.g. for partners).",
|
|
2478
|
-
"name": "image",
|
|
2479
|
-
"default": "copado-function-core:v1",
|
|
2480
|
-
"hasDynamicHelp": false,
|
|
2481
|
-
"multiple": false,
|
|
2482
|
-
"type": "option"
|
|
2483
|
-
},
|
|
2484
|
-
"parameter": {
|
|
2485
|
-
"description": "Environment variable for the script as key=value (repeatable)",
|
|
2486
|
-
"name": "parameter",
|
|
2487
|
-
"hasDynamicHelp": false,
|
|
2488
|
-
"multiple": true,
|
|
2489
|
-
"type": "option"
|
|
2490
|
-
},
|
|
2491
|
-
"platform": {
|
|
2492
|
-
"description": "Docker --platform value (e.g. linux/amd64 on Apple Silicon)",
|
|
2493
|
-
"name": "platform",
|
|
2494
|
-
"hasDynamicHelp": false,
|
|
2495
|
-
"multiple": false,
|
|
2496
|
-
"type": "option"
|
|
2497
|
-
},
|
|
2498
|
-
"runtime": {
|
|
2499
|
-
"description": "Override runtime detection from the script extension",
|
|
2500
|
-
"name": "runtime",
|
|
2501
|
-
"hasDynamicHelp": false,
|
|
2502
|
-
"multiple": false,
|
|
2503
|
-
"options": [
|
|
2504
|
-
"bash",
|
|
2505
|
-
"node",
|
|
2506
|
-
"python"
|
|
2507
|
-
],
|
|
2508
|
-
"type": "option"
|
|
2509
2415
|
}
|
|
2510
2416
|
},
|
|
2511
2417
|
"hasDynamicHelp": false,
|
|
2512
2418
|
"hiddenAliases": [],
|
|
2513
|
-
"id": "cicd:
|
|
2419
|
+
"id": "cicd:job:pause",
|
|
2514
2420
|
"pluginAlias": "@copado/agentia-cli",
|
|
2515
2421
|
"pluginName": "@copado/agentia-cli",
|
|
2516
2422
|
"pluginType": "core",
|
|
@@ -2521,24 +2427,23 @@
|
|
|
2521
2427
|
"dist",
|
|
2522
2428
|
"commands",
|
|
2523
2429
|
"cicd",
|
|
2524
|
-
"
|
|
2525
|
-
"
|
|
2430
|
+
"job",
|
|
2431
|
+
"pause.js"
|
|
2526
2432
|
]
|
|
2527
2433
|
},
|
|
2528
|
-
"cicd:
|
|
2434
|
+
"cicd:job:resume": {
|
|
2529
2435
|
"aliases": [],
|
|
2530
2436
|
"args": {
|
|
2531
|
-
"
|
|
2532
|
-
"description": "
|
|
2533
|
-
"name": "
|
|
2437
|
+
"id": {
|
|
2438
|
+
"description": "JobExecution Id",
|
|
2439
|
+
"name": "id",
|
|
2534
2440
|
"required": true
|
|
2535
2441
|
}
|
|
2536
2442
|
},
|
|
2537
|
-
"description": "
|
|
2443
|
+
"description": "Resume outstanding steps for a Copado job execution",
|
|
2538
2444
|
"examples": [
|
|
2539
|
-
"<%= config.bin %> <%= command.id %>
|
|
2540
|
-
"<%= config.bin %> <%= command.id %>
|
|
2541
|
-
"<%= config.bin %> <%= command.id %> myFunction --context-id a00... --deploy-first --json"
|
|
2445
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2446
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
2542
2447
|
],
|
|
2543
2448
|
"flags": {
|
|
2544
2449
|
"json": {
|
|
@@ -2547,37 +2452,11 @@
|
|
|
2547
2452
|
"name": "json",
|
|
2548
2453
|
"allowNo": false,
|
|
2549
2454
|
"type": "boolean"
|
|
2550
|
-
},
|
|
2551
|
-
"context-id": {
|
|
2552
|
-
"description": "Execution context Id",
|
|
2553
|
-
"name": "context-id",
|
|
2554
|
-
"hasDynamicHelp": false,
|
|
2555
|
-
"multiple": false,
|
|
2556
|
-
"type": "option"
|
|
2557
|
-
},
|
|
2558
|
-
"deploy-first": {
|
|
2559
|
-
"description": "Deploy related metadata before running the function",
|
|
2560
|
-
"name": "deploy-first",
|
|
2561
|
-
"allowNo": false,
|
|
2562
|
-
"type": "boolean"
|
|
2563
|
-
},
|
|
2564
|
-
"parameter": {
|
|
2565
|
-
"description": "Run parameter as key=value (repeatable)",
|
|
2566
|
-
"name": "parameter",
|
|
2567
|
-
"hasDynamicHelp": false,
|
|
2568
|
-
"multiple": true,
|
|
2569
|
-
"type": "option"
|
|
2570
|
-
},
|
|
2571
|
-
"show-validation-errors": {
|
|
2572
|
-
"description": "Surface validation errors from the gateway",
|
|
2573
|
-
"name": "show-validation-errors",
|
|
2574
|
-
"allowNo": true,
|
|
2575
|
-
"type": "boolean"
|
|
2576
2455
|
}
|
|
2577
2456
|
},
|
|
2578
2457
|
"hasDynamicHelp": false,
|
|
2579
2458
|
"hiddenAliases": [],
|
|
2580
|
-
"id": "cicd:
|
|
2459
|
+
"id": "cicd:job:resume",
|
|
2581
2460
|
"pluginAlias": "@copado/agentia-cli",
|
|
2582
2461
|
"pluginName": "@copado/agentia-cli",
|
|
2583
2462
|
"pluginType": "core",
|
|
@@ -2588,24 +2467,63 @@
|
|
|
2588
2467
|
"dist",
|
|
2589
2468
|
"commands",
|
|
2590
2469
|
"cicd",
|
|
2591
|
-
"
|
|
2592
|
-
"
|
|
2470
|
+
"job",
|
|
2471
|
+
"resume.js"
|
|
2593
2472
|
]
|
|
2594
2473
|
},
|
|
2595
|
-
"cicd:
|
|
2474
|
+
"cicd:job:run": {
|
|
2596
2475
|
"aliases": [],
|
|
2597
2476
|
"args": {
|
|
2598
|
-
"
|
|
2599
|
-
"description": "
|
|
2600
|
-
"name": "
|
|
2477
|
+
"id": {
|
|
2478
|
+
"description": "JobExecution Id",
|
|
2479
|
+
"name": "id",
|
|
2601
2480
|
"required": true
|
|
2602
2481
|
}
|
|
2603
2482
|
},
|
|
2604
|
-
"description": "
|
|
2483
|
+
"description": "Run all steps for a Copado job execution",
|
|
2484
|
+
"examples": [
|
|
2485
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
2486
|
+
"<%= config.bin %> <%= command.id %> <job-id> --restart --json"
|
|
2487
|
+
],
|
|
2488
|
+
"flags": {
|
|
2489
|
+
"json": {
|
|
2490
|
+
"description": "Format output as json.",
|
|
2491
|
+
"helpGroup": "GLOBAL",
|
|
2492
|
+
"name": "json",
|
|
2493
|
+
"allowNo": false,
|
|
2494
|
+
"type": "boolean"
|
|
2495
|
+
},
|
|
2496
|
+
"restart": {
|
|
2497
|
+
"description": "Restart the job run (gateway compatibility flag)",
|
|
2498
|
+
"name": "restart",
|
|
2499
|
+
"allowNo": false,
|
|
2500
|
+
"type": "boolean"
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2503
|
+
"hasDynamicHelp": false,
|
|
2504
|
+
"hiddenAliases": [],
|
|
2505
|
+
"id": "cicd:job:run",
|
|
2506
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
2507
|
+
"pluginName": "@copado/agentia-cli",
|
|
2508
|
+
"pluginType": "core",
|
|
2509
|
+
"strict": true,
|
|
2510
|
+
"enableJsonFlag": true,
|
|
2511
|
+
"isESM": true,
|
|
2512
|
+
"relativePath": [
|
|
2513
|
+
"dist",
|
|
2514
|
+
"commands",
|
|
2515
|
+
"cicd",
|
|
2516
|
+
"job",
|
|
2517
|
+
"run.js"
|
|
2518
|
+
]
|
|
2519
|
+
},
|
|
2520
|
+
"cicd:function:defaults": {
|
|
2521
|
+
"aliases": [],
|
|
2522
|
+
"args": {},
|
|
2523
|
+
"description": "Scaffold default Copado Function metadata and script without writing to Salesforce",
|
|
2605
2524
|
"examples": [
|
|
2606
|
-
"<%= config.bin %> <%= command.id %>
|
|
2607
|
-
"<%= config.bin %> <%= command.id %>
|
|
2608
|
-
"<%= config.bin %> <%= command.id %> myFunction --file ./function.json --json"
|
|
2525
|
+
"<%= config.bin %> <%= command.id %> --name MyFunction",
|
|
2526
|
+
"<%= config.bin %> <%= command.id %> --name MyFunction --runtime python --json"
|
|
2609
2527
|
],
|
|
2610
2528
|
"flags": {
|
|
2611
2529
|
"json": {
|
|
@@ -2615,58 +2533,18 @@
|
|
|
2615
2533
|
"allowNo": false,
|
|
2616
2534
|
"type": "boolean"
|
|
2617
2535
|
},
|
|
2618
|
-
"apex-class": {
|
|
2619
|
-
"description": "Apex callback class",
|
|
2620
|
-
"name": "apex-class",
|
|
2621
|
-
"hasDynamicHelp": false,
|
|
2622
|
-
"multiple": false,
|
|
2623
|
-
"type": "option"
|
|
2624
|
-
},
|
|
2625
|
-
"callback": {
|
|
2626
|
-
"description": "Function callback type",
|
|
2627
|
-
"name": "callback",
|
|
2628
|
-
"hasDynamicHelp": false,
|
|
2629
|
-
"multiple": false,
|
|
2630
|
-
"type": "option"
|
|
2631
|
-
},
|
|
2632
|
-
"description": {
|
|
2633
|
-
"description": "Function description",
|
|
2634
|
-
"name": "description",
|
|
2635
|
-
"hasDynamicHelp": false,
|
|
2636
|
-
"multiple": false,
|
|
2637
|
-
"type": "option"
|
|
2638
|
-
},
|
|
2639
|
-
"file": {
|
|
2640
|
-
"description": "Path to a JSON file with the full upsert payload (overrides individual script flags)",
|
|
2641
|
-
"name": "file",
|
|
2642
|
-
"hasDynamicHelp": false,
|
|
2643
|
-
"multiple": false,
|
|
2644
|
-
"type": "option"
|
|
2645
|
-
},
|
|
2646
|
-
"flow-handler": {
|
|
2647
|
-
"description": "Flow handler name",
|
|
2648
|
-
"name": "flow-handler",
|
|
2649
|
-
"hasDynamicHelp": false,
|
|
2650
|
-
"multiple": false,
|
|
2651
|
-
"type": "option"
|
|
2652
|
-
},
|
|
2653
2536
|
"image-name": {
|
|
2654
2537
|
"description": "Function container image",
|
|
2655
2538
|
"name": "image-name",
|
|
2539
|
+
"default": "copado-function-core:v1",
|
|
2656
2540
|
"hasDynamicHelp": false,
|
|
2657
2541
|
"multiple": false,
|
|
2658
2542
|
"type": "option"
|
|
2659
2543
|
},
|
|
2660
2544
|
"name": {
|
|
2661
|
-
"description": "Function display name
|
|
2545
|
+
"description": "Function display name used to scaffold defaults",
|
|
2662
2546
|
"name": "name",
|
|
2663
|
-
"
|
|
2664
|
-
"multiple": false,
|
|
2665
|
-
"type": "option"
|
|
2666
|
-
},
|
|
2667
|
-
"parameters-file": {
|
|
2668
|
-
"description": "Path to a JSON file containing the parameters array",
|
|
2669
|
-
"name": "parameters-file",
|
|
2547
|
+
"required": true,
|
|
2670
2548
|
"hasDynamicHelp": false,
|
|
2671
2549
|
"multiple": false,
|
|
2672
2550
|
"type": "option"
|
|
@@ -2674,6 +2552,7 @@
|
|
|
2674
2552
|
"runtime": {
|
|
2675
2553
|
"description": "Script runtime",
|
|
2676
2554
|
"name": "runtime",
|
|
2555
|
+
"default": "bash",
|
|
2677
2556
|
"hasDynamicHelp": false,
|
|
2678
2557
|
"multiple": false,
|
|
2679
2558
|
"options": [
|
|
@@ -2682,53 +2561,11 @@
|
|
|
2682
2561
|
"python"
|
|
2683
2562
|
],
|
|
2684
2563
|
"type": "option"
|
|
2685
|
-
},
|
|
2686
|
-
"script": {
|
|
2687
|
-
"description": "Inline script content",
|
|
2688
|
-
"name": "script",
|
|
2689
|
-
"hasDynamicHelp": false,
|
|
2690
|
-
"multiple": false,
|
|
2691
|
-
"type": "option"
|
|
2692
|
-
},
|
|
2693
|
-
"script-file": {
|
|
2694
|
-
"description": "Path to a file whose contents become the script",
|
|
2695
|
-
"name": "script-file",
|
|
2696
|
-
"hasDynamicHelp": false,
|
|
2697
|
-
"multiple": false,
|
|
2698
|
-
"type": "option"
|
|
2699
|
-
},
|
|
2700
|
-
"size": {
|
|
2701
|
-
"description": "Function size",
|
|
2702
|
-
"name": "size",
|
|
2703
|
-
"hasDynamicHelp": false,
|
|
2704
|
-
"multiple": false,
|
|
2705
|
-
"type": "option"
|
|
2706
|
-
},
|
|
2707
|
-
"timeout": {
|
|
2708
|
-
"description": "Function timeout in seconds",
|
|
2709
|
-
"name": "timeout",
|
|
2710
|
-
"hasDynamicHelp": false,
|
|
2711
|
-
"multiple": false,
|
|
2712
|
-
"type": "option"
|
|
2713
|
-
},
|
|
2714
|
-
"type": {
|
|
2715
|
-
"description": "Function type",
|
|
2716
|
-
"name": "type",
|
|
2717
|
-
"hasDynamicHelp": false,
|
|
2718
|
-
"multiple": false,
|
|
2719
|
-
"type": "option"
|
|
2720
|
-
},
|
|
2721
|
-
"version": {
|
|
2722
|
-
"description": "Function version",
|
|
2723
|
-
"name": "version",
|
|
2724
|
-
"hasDynamicHelp": false,
|
|
2725
|
-
"multiple": false,
|
|
2726
|
-
"type": "option"
|
|
2727
2564
|
}
|
|
2728
2565
|
},
|
|
2729
2566
|
"hasDynamicHelp": false,
|
|
2730
2567
|
"hiddenAliases": [],
|
|
2731
|
-
"id": "cicd:function:
|
|
2568
|
+
"id": "cicd:function:defaults",
|
|
2732
2569
|
"pluginAlias": "@copado/agentia-cli",
|
|
2733
2570
|
"pluginName": "@copado/agentia-cli",
|
|
2734
2571
|
"pluginType": "core",
|
|
@@ -2740,22 +2577,22 @@
|
|
|
2740
2577
|
"commands",
|
|
2741
2578
|
"cicd",
|
|
2742
2579
|
"function",
|
|
2743
|
-
"
|
|
2580
|
+
"defaults.js"
|
|
2744
2581
|
]
|
|
2745
2582
|
},
|
|
2746
|
-
"cicd:
|
|
2583
|
+
"cicd:function:delete": {
|
|
2747
2584
|
"aliases": [],
|
|
2748
2585
|
"args": {
|
|
2749
|
-
"
|
|
2750
|
-
"description": "
|
|
2751
|
-
"name": "
|
|
2586
|
+
"api-name": {
|
|
2587
|
+
"description": "Function API name",
|
|
2588
|
+
"name": "api-name",
|
|
2752
2589
|
"required": true
|
|
2753
2590
|
}
|
|
2754
2591
|
},
|
|
2755
|
-
"description": "
|
|
2592
|
+
"description": "Delete a Copado Function by API name",
|
|
2756
2593
|
"examples": [
|
|
2757
|
-
"<%= config.bin %> <%= command.id %>
|
|
2758
|
-
"<%= config.bin %> <%= command.id %>
|
|
2594
|
+
"<%= config.bin %> <%= command.id %> myFunction",
|
|
2595
|
+
"<%= config.bin %> <%= command.id %> myFunction --json"
|
|
2759
2596
|
],
|
|
2760
2597
|
"flags": {
|
|
2761
2598
|
"json": {
|
|
@@ -2768,7 +2605,7 @@
|
|
|
2768
2605
|
},
|
|
2769
2606
|
"hasDynamicHelp": false,
|
|
2770
2607
|
"hiddenAliases": [],
|
|
2771
|
-
"id": "cicd:
|
|
2608
|
+
"id": "cicd:function:delete",
|
|
2772
2609
|
"pluginAlias": "@copado/agentia-cli",
|
|
2773
2610
|
"pluginName": "@copado/agentia-cli",
|
|
2774
2611
|
"pluginType": "core",
|
|
@@ -2779,23 +2616,23 @@
|
|
|
2779
2616
|
"dist",
|
|
2780
2617
|
"commands",
|
|
2781
2618
|
"cicd",
|
|
2782
|
-
"
|
|
2783
|
-
"
|
|
2619
|
+
"function",
|
|
2620
|
+
"delete.js"
|
|
2784
2621
|
]
|
|
2785
2622
|
},
|
|
2786
|
-
"cicd:
|
|
2623
|
+
"cicd:function:get": {
|
|
2787
2624
|
"aliases": [],
|
|
2788
2625
|
"args": {
|
|
2789
|
-
"
|
|
2790
|
-
"description": "
|
|
2791
|
-
"name": "
|
|
2626
|
+
"api-name": {
|
|
2627
|
+
"description": "Function API name",
|
|
2628
|
+
"name": "api-name",
|
|
2792
2629
|
"required": true
|
|
2793
2630
|
}
|
|
2794
2631
|
},
|
|
2795
|
-
"description": "
|
|
2632
|
+
"description": "Get a Copado Function by API name",
|
|
2796
2633
|
"examples": [
|
|
2797
|
-
"<%= config.bin %> <%= command.id %>
|
|
2798
|
-
"<%= config.bin %> <%= command.id %>
|
|
2634
|
+
"<%= config.bin %> <%= command.id %> myFunction",
|
|
2635
|
+
"<%= config.bin %> <%= command.id %> myFunction --json"
|
|
2799
2636
|
],
|
|
2800
2637
|
"flags": {
|
|
2801
2638
|
"json": {
|
|
@@ -2808,7 +2645,7 @@
|
|
|
2808
2645
|
},
|
|
2809
2646
|
"hasDynamicHelp": false,
|
|
2810
2647
|
"hiddenAliases": [],
|
|
2811
|
-
"id": "cicd:
|
|
2648
|
+
"id": "cicd:function:get",
|
|
2812
2649
|
"pluginAlias": "@copado/agentia-cli",
|
|
2813
2650
|
"pluginName": "@copado/agentia-cli",
|
|
2814
2651
|
"pluginType": "core",
|
|
@@ -2819,18 +2656,21 @@
|
|
|
2819
2656
|
"dist",
|
|
2820
2657
|
"commands",
|
|
2821
2658
|
"cicd",
|
|
2822
|
-
"
|
|
2823
|
-
"
|
|
2659
|
+
"function",
|
|
2660
|
+
"get.js"
|
|
2824
2661
|
]
|
|
2825
2662
|
},
|
|
2826
|
-
"cicd:
|
|
2663
|
+
"cicd:function:list": {
|
|
2827
2664
|
"aliases": [],
|
|
2828
2665
|
"args": {},
|
|
2829
|
-
"description": "List Copado
|
|
2666
|
+
"description": "List Copado Functions",
|
|
2830
2667
|
"examples": [
|
|
2831
2668
|
"<%= config.bin %> <%= command.id %>",
|
|
2832
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2833
|
-
"<%= config.bin %> <%= command.id %> --name
|
|
2669
|
+
"<%= config.bin %> <%= command.id %> --type all",
|
|
2670
|
+
"<%= config.bin %> <%= command.id %> --name MyFunction --size S",
|
|
2671
|
+
"<%= config.bin %> <%= command.id %> --image-name copado-function-core:v1",
|
|
2672
|
+
"<%= config.bin %> <%= command.id %> --page-size 50",
|
|
2673
|
+
"<%= config.bin %> <%= command.id %> --cursor NEXT --json",
|
|
2834
2674
|
"<%= config.bin %> <%= command.id %> --json"
|
|
2835
2675
|
],
|
|
2836
2676
|
"flags": {
|
|
@@ -2855,58 +2695,43 @@
|
|
|
2855
2695
|
"multiple": false,
|
|
2856
2696
|
"type": "option"
|
|
2857
2697
|
},
|
|
2858
|
-
"
|
|
2859
|
-
"description": "
|
|
2860
|
-
"name": "
|
|
2861
|
-
"hasDynamicHelp": false,
|
|
2862
|
-
"multiple": false,
|
|
2863
|
-
"type": "option"
|
|
2864
|
-
},
|
|
2865
|
-
"id": {
|
|
2866
|
-
"description": "Exact JobExecution Id",
|
|
2867
|
-
"name": "id",
|
|
2698
|
+
"image-name": {
|
|
2699
|
+
"description": "Filter by function container image",
|
|
2700
|
+
"name": "image-name",
|
|
2868
2701
|
"hasDynamicHelp": false,
|
|
2869
2702
|
"multiple": false,
|
|
2870
2703
|
"type": "option"
|
|
2871
2704
|
},
|
|
2872
|
-
"mine": {
|
|
2873
|
-
"description": "List only jobs owned by the current user",
|
|
2874
|
-
"name": "mine",
|
|
2875
|
-
"allowNo": false,
|
|
2876
|
-
"type": "boolean"
|
|
2877
|
-
},
|
|
2878
2705
|
"name": {
|
|
2879
|
-
"description": "
|
|
2706
|
+
"description": "Filter by name",
|
|
2880
2707
|
"name": "name",
|
|
2881
2708
|
"hasDynamicHelp": false,
|
|
2882
2709
|
"multiple": false,
|
|
2883
2710
|
"type": "option"
|
|
2884
2711
|
},
|
|
2885
|
-
"
|
|
2886
|
-
"description": "
|
|
2887
|
-
"name": "
|
|
2888
|
-
"hasDynamicHelp": false,
|
|
2889
|
-
"multiple": false,
|
|
2890
|
-
"type": "option"
|
|
2891
|
-
},
|
|
2892
|
-
"status": {
|
|
2893
|
-
"description": "Exact Copado job status",
|
|
2894
|
-
"name": "status",
|
|
2712
|
+
"size": {
|
|
2713
|
+
"description": "Filter by function size",
|
|
2714
|
+
"name": "size",
|
|
2895
2715
|
"hasDynamicHelp": false,
|
|
2896
2716
|
"multiple": false,
|
|
2897
2717
|
"type": "option"
|
|
2898
2718
|
},
|
|
2899
2719
|
"type": {
|
|
2900
|
-
"description": "
|
|
2720
|
+
"description": "List Custom functions only, or all functions",
|
|
2901
2721
|
"name": "type",
|
|
2722
|
+
"default": "custom",
|
|
2902
2723
|
"hasDynamicHelp": false,
|
|
2903
2724
|
"multiple": false,
|
|
2725
|
+
"options": [
|
|
2726
|
+
"custom",
|
|
2727
|
+
"all"
|
|
2728
|
+
],
|
|
2904
2729
|
"type": "option"
|
|
2905
2730
|
}
|
|
2906
2731
|
},
|
|
2907
2732
|
"hasDynamicHelp": false,
|
|
2908
2733
|
"hiddenAliases": [],
|
|
2909
|
-
"id": "cicd:
|
|
2734
|
+
"id": "cicd:function:list",
|
|
2910
2735
|
"pluginAlias": "@copado/agentia-cli",
|
|
2911
2736
|
"pluginName": "@copado/agentia-cli",
|
|
2912
2737
|
"pluginType": "core",
|
|
@@ -2917,23 +2742,23 @@
|
|
|
2917
2742
|
"dist",
|
|
2918
2743
|
"commands",
|
|
2919
2744
|
"cicd",
|
|
2920
|
-
"
|
|
2745
|
+
"function",
|
|
2921
2746
|
"list.js"
|
|
2922
2747
|
]
|
|
2923
2748
|
},
|
|
2924
|
-
"cicd:
|
|
2749
|
+
"cicd:function:open": {
|
|
2925
2750
|
"aliases": [],
|
|
2926
2751
|
"args": {
|
|
2927
2752
|
"id": {
|
|
2928
|
-
"description": "
|
|
2753
|
+
"description": "Function ID",
|
|
2929
2754
|
"name": "id",
|
|
2930
2755
|
"required": true
|
|
2931
2756
|
}
|
|
2932
2757
|
},
|
|
2933
|
-
"description": "Open a Copado
|
|
2758
|
+
"description": "Open a Copado Function in the browser",
|
|
2934
2759
|
"examples": [
|
|
2935
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2936
|
-
"<%= config.bin %> <%= command.id %> <
|
|
2760
|
+
"<%= config.bin %> <%= command.id %> <function-id>",
|
|
2761
|
+
"<%= config.bin %> <%= command.id %> <function-id> --json"
|
|
2937
2762
|
],
|
|
2938
2763
|
"flags": {
|
|
2939
2764
|
"json": {
|
|
@@ -2946,7 +2771,7 @@
|
|
|
2946
2771
|
},
|
|
2947
2772
|
"hasDynamicHelp": false,
|
|
2948
2773
|
"hiddenAliases": [],
|
|
2949
|
-
"id": "cicd:
|
|
2774
|
+
"id": "cicd:function:open",
|
|
2950
2775
|
"pluginAlias": "@copado/agentia-cli",
|
|
2951
2776
|
"pluginName": "@copado/agentia-cli",
|
|
2952
2777
|
"pluginType": "core",
|
|
@@ -2957,23 +2782,24 @@
|
|
|
2957
2782
|
"dist",
|
|
2958
2783
|
"commands",
|
|
2959
2784
|
"cicd",
|
|
2960
|
-
"
|
|
2785
|
+
"function",
|
|
2961
2786
|
"open.js"
|
|
2962
2787
|
]
|
|
2963
2788
|
},
|
|
2964
|
-
"cicd:
|
|
2789
|
+
"cicd:function:run-local": {
|
|
2965
2790
|
"aliases": [],
|
|
2966
2791
|
"args": {
|
|
2967
|
-
"
|
|
2968
|
-
"description": "
|
|
2969
|
-
"name": "
|
|
2792
|
+
"script": {
|
|
2793
|
+
"description": "Path to the local function script (.sh, .js, or .py)",
|
|
2794
|
+
"name": "script",
|
|
2970
2795
|
"required": true
|
|
2971
2796
|
}
|
|
2972
2797
|
},
|
|
2973
|
-
"description": "
|
|
2798
|
+
"description": "Run a Copado Function script locally in Docker (no CICD gateway). Override --image when the Copado registry is unavailable.",
|
|
2974
2799
|
"examples": [
|
|
2975
|
-
"<%= config.bin %> <%= command.id %>
|
|
2976
|
-
"<%= config.bin %> <%= command.id %>
|
|
2800
|
+
"<%= config.bin %> <%= command.id %> copado/functions/myFunction.sh",
|
|
2801
|
+
"<%= config.bin %> <%= command.id %> ./myFunction.js --cwd . --image my-registry/function-core:v1 --parameter ENV=dev --json",
|
|
2802
|
+
"<%= config.bin %> <%= command.id %> ./myFunction.py --runtime python --platform linux/amd64"
|
|
2977
2803
|
],
|
|
2978
2804
|
"flags": {
|
|
2979
2805
|
"json": {
|
|
@@ -2982,11 +2808,53 @@
|
|
|
2982
2808
|
"name": "json",
|
|
2983
2809
|
"allowNo": false,
|
|
2984
2810
|
"type": "boolean"
|
|
2811
|
+
},
|
|
2812
|
+
"cwd": {
|
|
2813
|
+
"description": "Host directory bind-mounted at /app inside the container (defaults to the current working directory)",
|
|
2814
|
+
"name": "cwd",
|
|
2815
|
+
"hasDynamicHelp": false,
|
|
2816
|
+
"multiple": false,
|
|
2817
|
+
"type": "option"
|
|
2818
|
+
},
|
|
2819
|
+
"image": {
|
|
2820
|
+
"char": "i",
|
|
2821
|
+
"description": "Docker image used to run the function. Override when the Copado image registry is unavailable (e.g. for partners).",
|
|
2822
|
+
"name": "image",
|
|
2823
|
+
"default": "copado-function-core:v1",
|
|
2824
|
+
"hasDynamicHelp": false,
|
|
2825
|
+
"multiple": false,
|
|
2826
|
+
"type": "option"
|
|
2827
|
+
},
|
|
2828
|
+
"parameter": {
|
|
2829
|
+
"description": "Environment variable for the script as key=value (repeatable)",
|
|
2830
|
+
"name": "parameter",
|
|
2831
|
+
"hasDynamicHelp": false,
|
|
2832
|
+
"multiple": true,
|
|
2833
|
+
"type": "option"
|
|
2834
|
+
},
|
|
2835
|
+
"platform": {
|
|
2836
|
+
"description": "Docker --platform value (e.g. linux/amd64 on Apple Silicon)",
|
|
2837
|
+
"name": "platform",
|
|
2838
|
+
"hasDynamicHelp": false,
|
|
2839
|
+
"multiple": false,
|
|
2840
|
+
"type": "option"
|
|
2841
|
+
},
|
|
2842
|
+
"runtime": {
|
|
2843
|
+
"description": "Override runtime detection from the script extension",
|
|
2844
|
+
"name": "runtime",
|
|
2845
|
+
"hasDynamicHelp": false,
|
|
2846
|
+
"multiple": false,
|
|
2847
|
+
"options": [
|
|
2848
|
+
"bash",
|
|
2849
|
+
"node",
|
|
2850
|
+
"python"
|
|
2851
|
+
],
|
|
2852
|
+
"type": "option"
|
|
2985
2853
|
}
|
|
2986
2854
|
},
|
|
2987
2855
|
"hasDynamicHelp": false,
|
|
2988
2856
|
"hiddenAliases": [],
|
|
2989
|
-
"id": "cicd:
|
|
2857
|
+
"id": "cicd:function:run-local",
|
|
2990
2858
|
"pluginAlias": "@copado/agentia-cli",
|
|
2991
2859
|
"pluginName": "@copado/agentia-cli",
|
|
2992
2860
|
"pluginType": "core",
|
|
@@ -2997,23 +2865,24 @@
|
|
|
2997
2865
|
"dist",
|
|
2998
2866
|
"commands",
|
|
2999
2867
|
"cicd",
|
|
3000
|
-
"
|
|
3001
|
-
"
|
|
2868
|
+
"function",
|
|
2869
|
+
"run-local.js"
|
|
3002
2870
|
]
|
|
3003
2871
|
},
|
|
3004
|
-
"cicd:
|
|
2872
|
+
"cicd:function:run": {
|
|
3005
2873
|
"aliases": [],
|
|
3006
2874
|
"args": {
|
|
3007
|
-
"
|
|
3008
|
-
"description": "
|
|
3009
|
-
"name": "
|
|
2875
|
+
"api-name": {
|
|
2876
|
+
"description": "Function API name",
|
|
2877
|
+
"name": "api-name",
|
|
3010
2878
|
"required": true
|
|
3011
2879
|
}
|
|
3012
2880
|
},
|
|
3013
|
-
"description": "
|
|
2881
|
+
"description": "Run a Copado Function and return the result Id",
|
|
3014
2882
|
"examples": [
|
|
3015
|
-
"<%= config.bin %> <%= command.id %>
|
|
3016
|
-
"<%= config.bin %> <%= command.id %>
|
|
2883
|
+
"<%= config.bin %> <%= command.id %> myFunction",
|
|
2884
|
+
"<%= config.bin %> <%= command.id %> myFunction --parameter env=dev --json",
|
|
2885
|
+
"<%= config.bin %> <%= command.id %> myFunction --context-id a00... --deploy-first --json"
|
|
3017
2886
|
],
|
|
3018
2887
|
"flags": {
|
|
3019
2888
|
"json": {
|
|
@@ -3022,11 +2891,37 @@
|
|
|
3022
2891
|
"name": "json",
|
|
3023
2892
|
"allowNo": false,
|
|
3024
2893
|
"type": "boolean"
|
|
2894
|
+
},
|
|
2895
|
+
"context-id": {
|
|
2896
|
+
"description": "Execution context Id",
|
|
2897
|
+
"name": "context-id",
|
|
2898
|
+
"hasDynamicHelp": false,
|
|
2899
|
+
"multiple": false,
|
|
2900
|
+
"type": "option"
|
|
2901
|
+
},
|
|
2902
|
+
"deploy-first": {
|
|
2903
|
+
"description": "Deploy related metadata before running the function",
|
|
2904
|
+
"name": "deploy-first",
|
|
2905
|
+
"allowNo": false,
|
|
2906
|
+
"type": "boolean"
|
|
2907
|
+
},
|
|
2908
|
+
"parameter": {
|
|
2909
|
+
"description": "Run parameter as key=value (repeatable)",
|
|
2910
|
+
"name": "parameter",
|
|
2911
|
+
"hasDynamicHelp": false,
|
|
2912
|
+
"multiple": true,
|
|
2913
|
+
"type": "option"
|
|
2914
|
+
},
|
|
2915
|
+
"show-validation-errors": {
|
|
2916
|
+
"description": "Surface validation errors from the gateway",
|
|
2917
|
+
"name": "show-validation-errors",
|
|
2918
|
+
"allowNo": true,
|
|
2919
|
+
"type": "boolean"
|
|
3025
2920
|
}
|
|
3026
2921
|
},
|
|
3027
2922
|
"hasDynamicHelp": false,
|
|
3028
2923
|
"hiddenAliases": [],
|
|
3029
|
-
"id": "cicd:
|
|
2924
|
+
"id": "cicd:function:run",
|
|
3030
2925
|
"pluginAlias": "@copado/agentia-cli",
|
|
3031
2926
|
"pluginName": "@copado/agentia-cli",
|
|
3032
2927
|
"pluginType": "core",
|
|
@@ -3037,23 +2932,24 @@
|
|
|
3037
2932
|
"dist",
|
|
3038
2933
|
"commands",
|
|
3039
2934
|
"cicd",
|
|
3040
|
-
"
|
|
3041
|
-
"
|
|
2935
|
+
"function",
|
|
2936
|
+
"run.js"
|
|
3042
2937
|
]
|
|
3043
2938
|
},
|
|
3044
|
-
"cicd:
|
|
2939
|
+
"cicd:function:upsert": {
|
|
3045
2940
|
"aliases": [],
|
|
3046
2941
|
"args": {
|
|
3047
|
-
"
|
|
3048
|
-
"description": "
|
|
3049
|
-
"name": "
|
|
2942
|
+
"api-name": {
|
|
2943
|
+
"description": "Function API name",
|
|
2944
|
+
"name": "api-name",
|
|
3050
2945
|
"required": true
|
|
3051
2946
|
}
|
|
3052
2947
|
},
|
|
3053
|
-
"description": "
|
|
2948
|
+
"description": "Create or update a Copado Function by API name",
|
|
3054
2949
|
"examples": [
|
|
3055
|
-
"<%= config.bin %> <%= command.id %>
|
|
3056
|
-
"<%= config.bin %> <%= command.id %>
|
|
2950
|
+
"<%= config.bin %> <%= command.id %> myFunction --name \"My Function\" --script \"echo hello\"",
|
|
2951
|
+
"<%= config.bin %> <%= command.id %> myFunction --script-file ./run.sh --runtime bash --json",
|
|
2952
|
+
"<%= config.bin %> <%= command.id %> myFunction --file ./function.json --json"
|
|
3057
2953
|
],
|
|
3058
2954
|
"flags": {
|
|
3059
2955
|
"json": {
|
|
@@ -3063,16 +2959,120 @@
|
|
|
3063
2959
|
"allowNo": false,
|
|
3064
2960
|
"type": "boolean"
|
|
3065
2961
|
},
|
|
3066
|
-
"
|
|
3067
|
-
"description": "
|
|
3068
|
-
"name": "
|
|
3069
|
-
"
|
|
3070
|
-
"
|
|
2962
|
+
"apex-class": {
|
|
2963
|
+
"description": "Apex callback class",
|
|
2964
|
+
"name": "apex-class",
|
|
2965
|
+
"hasDynamicHelp": false,
|
|
2966
|
+
"multiple": false,
|
|
2967
|
+
"type": "option"
|
|
2968
|
+
},
|
|
2969
|
+
"callback": {
|
|
2970
|
+
"description": "Function callback type",
|
|
2971
|
+
"name": "callback",
|
|
2972
|
+
"hasDynamicHelp": false,
|
|
2973
|
+
"multiple": false,
|
|
2974
|
+
"type": "option"
|
|
2975
|
+
},
|
|
2976
|
+
"description": {
|
|
2977
|
+
"description": "Function description",
|
|
2978
|
+
"name": "description",
|
|
2979
|
+
"hasDynamicHelp": false,
|
|
2980
|
+
"multiple": false,
|
|
2981
|
+
"type": "option"
|
|
2982
|
+
},
|
|
2983
|
+
"file": {
|
|
2984
|
+
"description": "Path to a JSON file with the full upsert payload (overrides individual script flags)",
|
|
2985
|
+
"name": "file",
|
|
2986
|
+
"hasDynamicHelp": false,
|
|
2987
|
+
"multiple": false,
|
|
2988
|
+
"type": "option"
|
|
2989
|
+
},
|
|
2990
|
+
"flow-handler": {
|
|
2991
|
+
"description": "Flow handler name",
|
|
2992
|
+
"name": "flow-handler",
|
|
2993
|
+
"hasDynamicHelp": false,
|
|
2994
|
+
"multiple": false,
|
|
2995
|
+
"type": "option"
|
|
2996
|
+
},
|
|
2997
|
+
"image-name": {
|
|
2998
|
+
"description": "Function container image",
|
|
2999
|
+
"name": "image-name",
|
|
3000
|
+
"hasDynamicHelp": false,
|
|
3001
|
+
"multiple": false,
|
|
3002
|
+
"type": "option"
|
|
3003
|
+
},
|
|
3004
|
+
"name": {
|
|
3005
|
+
"description": "Function display name (defaults to the API name argument)",
|
|
3006
|
+
"name": "name",
|
|
3007
|
+
"hasDynamicHelp": false,
|
|
3008
|
+
"multiple": false,
|
|
3009
|
+
"type": "option"
|
|
3010
|
+
},
|
|
3011
|
+
"parameters-file": {
|
|
3012
|
+
"description": "Path to a JSON file containing the parameters array",
|
|
3013
|
+
"name": "parameters-file",
|
|
3014
|
+
"hasDynamicHelp": false,
|
|
3015
|
+
"multiple": false,
|
|
3016
|
+
"type": "option"
|
|
3017
|
+
},
|
|
3018
|
+
"runtime": {
|
|
3019
|
+
"description": "Script runtime",
|
|
3020
|
+
"name": "runtime",
|
|
3021
|
+
"hasDynamicHelp": false,
|
|
3022
|
+
"multiple": false,
|
|
3023
|
+
"options": [
|
|
3024
|
+
"bash",
|
|
3025
|
+
"node",
|
|
3026
|
+
"python"
|
|
3027
|
+
],
|
|
3028
|
+
"type": "option"
|
|
3029
|
+
},
|
|
3030
|
+
"script": {
|
|
3031
|
+
"description": "Inline script content",
|
|
3032
|
+
"name": "script",
|
|
3033
|
+
"hasDynamicHelp": false,
|
|
3034
|
+
"multiple": false,
|
|
3035
|
+
"type": "option"
|
|
3036
|
+
},
|
|
3037
|
+
"script-file": {
|
|
3038
|
+
"description": "Path to a file whose contents become the script",
|
|
3039
|
+
"name": "script-file",
|
|
3040
|
+
"hasDynamicHelp": false,
|
|
3041
|
+
"multiple": false,
|
|
3042
|
+
"type": "option"
|
|
3043
|
+
},
|
|
3044
|
+
"size": {
|
|
3045
|
+
"description": "Function size",
|
|
3046
|
+
"name": "size",
|
|
3047
|
+
"hasDynamicHelp": false,
|
|
3048
|
+
"multiple": false,
|
|
3049
|
+
"type": "option"
|
|
3050
|
+
},
|
|
3051
|
+
"timeout": {
|
|
3052
|
+
"description": "Function timeout in seconds",
|
|
3053
|
+
"name": "timeout",
|
|
3054
|
+
"hasDynamicHelp": false,
|
|
3055
|
+
"multiple": false,
|
|
3056
|
+
"type": "option"
|
|
3057
|
+
},
|
|
3058
|
+
"type": {
|
|
3059
|
+
"description": "Function type",
|
|
3060
|
+
"name": "type",
|
|
3061
|
+
"hasDynamicHelp": false,
|
|
3062
|
+
"multiple": false,
|
|
3063
|
+
"type": "option"
|
|
3064
|
+
},
|
|
3065
|
+
"version": {
|
|
3066
|
+
"description": "Function version",
|
|
3067
|
+
"name": "version",
|
|
3068
|
+
"hasDynamicHelp": false,
|
|
3069
|
+
"multiple": false,
|
|
3070
|
+
"type": "option"
|
|
3071
3071
|
}
|
|
3072
3072
|
},
|
|
3073
3073
|
"hasDynamicHelp": false,
|
|
3074
3074
|
"hiddenAliases": [],
|
|
3075
|
-
"id": "cicd:
|
|
3075
|
+
"id": "cicd:function:upsert",
|
|
3076
3076
|
"pluginAlias": "@copado/agentia-cli",
|
|
3077
3077
|
"pluginName": "@copado/agentia-cli",
|
|
3078
3078
|
"pluginType": "core",
|
|
@@ -3083,8 +3083,8 @@
|
|
|
3083
3083
|
"dist",
|
|
3084
3084
|
"commands",
|
|
3085
3085
|
"cicd",
|
|
3086
|
-
"
|
|
3087
|
-
"
|
|
3086
|
+
"function",
|
|
3087
|
+
"upsert.js"
|
|
3088
3088
|
]
|
|
3089
3089
|
},
|
|
3090
3090
|
"cicd:metadata:list": {
|
|
@@ -4537,8 +4537,8 @@
|
|
|
4537
4537
|
"examples": [
|
|
4538
4538
|
"<%= config.bin %> <%= command.id %> --local --all",
|
|
4539
4539
|
"<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 add account service\" --permissions CustomField:Account.SLA__c,ApexClass:AccountService --apex-test-classes MyTest,OtherTest",
|
|
4540
|
-
"<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --action Add",
|
|
4541
|
-
"<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --message \"Update Aura files\" --metadata-name accountEditor --metadata-type AuraDefinitionBundle --action SelectiveCommit --selection accountEditor/accountEditor.cmp --selection accountEditor/accountEditorController.js",
|
|
4540
|
+
"<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --metadata-category SFDX --action Add",
|
|
4541
|
+
"<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --message \"Update Aura files\" --metadata-name accountEditor --metadata-type AuraDefinitionBundle --metadata-category SFDX --action SelectiveCommit --selection accountEditor/accountEditor.cmp --selection accountEditor/accountEditorController.js",
|
|
4542
4542
|
"cat commit-request.json | <%= config.bin %> <%= command.id %> --cloud --stdin --json"
|
|
4543
4543
|
],
|
|
4544
4544
|
"flags": {
|
|
@@ -4626,7 +4626,7 @@
|
|
|
4626
4626
|
"type": "option"
|
|
4627
4627
|
},
|
|
4628
4628
|
"metadata-category": {
|
|
4629
|
-
"description": "
|
|
4629
|
+
"description": "Metadata category for simple input. Maps to change field c. For Salesforce metadata, always set SFDX so Copado stores c:SFDX. Omitting it omits c, and SFDX deploy steps log \"Salesforce changes not found.\" and skip the deploy while the job can still report Successful.",
|
|
4630
4630
|
"name": "metadata-category",
|
|
4631
4631
|
"hasDynamicHelp": false,
|
|
4632
4632
|
"multiple": false,
|
|
@@ -10226,19 +10226,20 @@
|
|
|
10226
10226
|
"status.js"
|
|
10227
10227
|
]
|
|
10228
10228
|
},
|
|
10229
|
-
"cicd:
|
|
10229
|
+
"cicd:job:log:get": {
|
|
10230
10230
|
"aliases": [],
|
|
10231
10231
|
"args": {
|
|
10232
|
-
"
|
|
10233
|
-
"description": "
|
|
10234
|
-
"name": "
|
|
10232
|
+
"id": {
|
|
10233
|
+
"description": "JobExecution Id",
|
|
10234
|
+
"name": "id",
|
|
10235
10235
|
"required": true
|
|
10236
10236
|
}
|
|
10237
10237
|
},
|
|
10238
|
-
"description": "Get
|
|
10238
|
+
"description": "Get log output for a Copado job execution step",
|
|
10239
10239
|
"examples": [
|
|
10240
|
-
"<%= config.bin %> <%= command.id %> <
|
|
10241
|
-
"<%= config.bin %> <%= command.id %> <
|
|
10240
|
+
"<%= config.bin %> <%= command.id %> <job-id>",
|
|
10241
|
+
"<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
|
|
10242
|
+
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
10242
10243
|
],
|
|
10243
10244
|
"flags": {
|
|
10244
10245
|
"json": {
|
|
@@ -10247,11 +10248,18 @@
|
|
|
10247
10248
|
"name": "json",
|
|
10248
10249
|
"allowNo": false,
|
|
10249
10250
|
"type": "boolean"
|
|
10251
|
+
},
|
|
10252
|
+
"step": {
|
|
10253
|
+
"description": "Job step Id (defaults to the first step with a result Id)",
|
|
10254
|
+
"name": "step",
|
|
10255
|
+
"hasDynamicHelp": false,
|
|
10256
|
+
"multiple": false,
|
|
10257
|
+
"type": "option"
|
|
10250
10258
|
}
|
|
10251
10259
|
},
|
|
10252
10260
|
"hasDynamicHelp": false,
|
|
10253
10261
|
"hiddenAliases": [],
|
|
10254
|
-
"id": "cicd:
|
|
10262
|
+
"id": "cicd:job:log:get",
|
|
10255
10263
|
"pluginAlias": "@copado/agentia-cli",
|
|
10256
10264
|
"pluginName": "@copado/agentia-cli",
|
|
10257
10265
|
"pluginType": "core",
|
|
@@ -10262,25 +10270,24 @@
|
|
|
10262
10270
|
"dist",
|
|
10263
10271
|
"commands",
|
|
10264
10272
|
"cicd",
|
|
10265
|
-
"
|
|
10266
|
-
"
|
|
10273
|
+
"job",
|
|
10274
|
+
"log",
|
|
10267
10275
|
"get.js"
|
|
10268
10276
|
]
|
|
10269
10277
|
},
|
|
10270
|
-
"cicd:
|
|
10278
|
+
"cicd:function:result:get": {
|
|
10271
10279
|
"aliases": [],
|
|
10272
10280
|
"args": {
|
|
10273
|
-
"id": {
|
|
10274
|
-
"description": "
|
|
10275
|
-
"name": "id",
|
|
10281
|
+
"result-id": {
|
|
10282
|
+
"description": "Function result Id",
|
|
10283
|
+
"name": "result-id",
|
|
10276
10284
|
"required": true
|
|
10277
10285
|
}
|
|
10278
10286
|
},
|
|
10279
|
-
"description": "Get
|
|
10287
|
+
"description": "Get Copado Function execution status by result Id",
|
|
10280
10288
|
"examples": [
|
|
10281
|
-
"<%= config.bin %> <%= command.id %> <
|
|
10282
|
-
"<%= config.bin %> <%= command.id %> <
|
|
10283
|
-
"<%= config.bin %> <%= command.id %> <job-id> --json"
|
|
10289
|
+
"<%= config.bin %> <%= command.id %> <result-id>",
|
|
10290
|
+
"<%= config.bin %> <%= command.id %> <result-id> --json"
|
|
10284
10291
|
],
|
|
10285
10292
|
"flags": {
|
|
10286
10293
|
"json": {
|
|
@@ -10289,18 +10296,11 @@
|
|
|
10289
10296
|
"name": "json",
|
|
10290
10297
|
"allowNo": false,
|
|
10291
10298
|
"type": "boolean"
|
|
10292
|
-
},
|
|
10293
|
-
"step": {
|
|
10294
|
-
"description": "Job step Id (defaults to the first step with a result Id)",
|
|
10295
|
-
"name": "step",
|
|
10296
|
-
"hasDynamicHelp": false,
|
|
10297
|
-
"multiple": false,
|
|
10298
|
-
"type": "option"
|
|
10299
10299
|
}
|
|
10300
10300
|
},
|
|
10301
10301
|
"hasDynamicHelp": false,
|
|
10302
10302
|
"hiddenAliases": [],
|
|
10303
|
-
"id": "cicd:
|
|
10303
|
+
"id": "cicd:function:result:get",
|
|
10304
10304
|
"pluginAlias": "@copado/agentia-cli",
|
|
10305
10305
|
"pluginName": "@copado/agentia-cli",
|
|
10306
10306
|
"pluginType": "core",
|
|
@@ -10311,8 +10311,8 @@
|
|
|
10311
10311
|
"dist",
|
|
10312
10312
|
"commands",
|
|
10313
10313
|
"cicd",
|
|
10314
|
-
"
|
|
10315
|
-
"
|
|
10314
|
+
"function",
|
|
10315
|
+
"result",
|
|
10316
10316
|
"get.js"
|
|
10317
10317
|
]
|
|
10318
10318
|
},
|
|
@@ -12351,5 +12351,5 @@
|
|
|
12351
12351
|
]
|
|
12352
12352
|
}
|
|
12353
12353
|
},
|
|
12354
|
-
"version": "0.
|
|
12354
|
+
"version": "0.77.0-alpha.0"
|
|
12355
12355
|
}
|