@sw-tsdk/plugin-connector 3.9.0 → 3.9.2
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 +72 -62
- package/lib/commands/component/create.d.ts +4 -0
- package/lib/commands/component/create.js +52 -1
- package/lib/commands/component/create.js.map +1 -1
- package/lib/commands/playbook/create.d.ts +4 -0
- package/lib/commands/playbook/create.js +52 -1
- package/lib/commands/playbook/create.js.map +1 -1
- package/lib/types/connector-types.d.ts +10 -2
- package/oclif.manifest.json +51 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @sw-tsdk/plugin-connector
|
|
|
16
16
|
$ sw-tsdk-connector COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ sw-tsdk-connector (--version)
|
|
19
|
-
@sw-tsdk/plugin-connector/3.9.
|
|
19
|
+
@sw-tsdk/plugin-connector/3.9.2 linux-x64 node-v16.20.2
|
|
20
20
|
$ sw-tsdk-connector --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ sw-tsdk-connector COMMAND
|
|
@@ -75,7 +75,7 @@ DESCRIPTION
|
|
|
75
75
|
Update a connector action.
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
78
|
+
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/action/add.js)_
|
|
79
79
|
|
|
80
80
|
## `sw-tsdk-connector action:generate:data`
|
|
81
81
|
|
|
@@ -100,7 +100,7 @@ DESCRIPTION
|
|
|
100
100
|
Use to test a task in an integration
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
103
|
+
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/action/generate/data.js)_
|
|
104
104
|
|
|
105
105
|
## `sw-tsdk-connector action:generate:input`
|
|
106
106
|
|
|
@@ -125,7 +125,7 @@ DESCRIPTION
|
|
|
125
125
|
Update action input schema.
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
128
|
+
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/action/generate/input.js)_
|
|
129
129
|
|
|
130
130
|
## `sw-tsdk-connector action:generate:output`
|
|
131
131
|
|
|
@@ -149,7 +149,7 @@ DESCRIPTION
|
|
|
149
149
|
Update a connector action.
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
152
|
+
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/action/generate/output.js)_
|
|
153
153
|
|
|
154
154
|
## `sw-tsdk-connector action:run:local`
|
|
155
155
|
|
|
@@ -178,7 +178,7 @@ DESCRIPTION
|
|
|
178
178
|
Runs a connector action. (Defaults to current image version in local repository).
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
181
|
+
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/action/run/local.js)_
|
|
182
182
|
|
|
183
183
|
## `sw-tsdk-connector asset:add`
|
|
184
184
|
|
|
@@ -199,7 +199,7 @@ DESCRIPTION
|
|
|
199
199
|
Update a connector action.
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
202
|
+
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/asset/add.js)_
|
|
203
203
|
|
|
204
204
|
## `sw-tsdk-connector component:create`
|
|
205
205
|
|
|
@@ -210,30 +210,35 @@ USAGE
|
|
|
210
210
|
$ sw-tsdk-connector component:create [-d <value>] [--componentUseCaseType <value>] [--componentFamily <value>]
|
|
211
211
|
[--vendor <value>] [--componentName <value>] [--keywords <value>] [--description <value>] [--logoPath <value>]
|
|
212
212
|
[--overviewImagePath <value>] [--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>]
|
|
213
|
-
[
|
|
213
|
+
[--readmePath <value>] [--externalReadmePath <value>] [--documentationReadmePath <value>] [--externalymlPath
|
|
214
|
+
<value>] [-h]
|
|
214
215
|
|
|
215
216
|
FLAGS
|
|
216
|
-
-d, --directory=<value>
|
|
217
|
-
-h, --help
|
|
218
|
-
--author=<value>
|
|
219
|
-
--authorEmail=<value>
|
|
220
|
-
--componentFamily=<value>
|
|
221
|
-
--componentName=<value>
|
|
222
|
-
--componentUseCaseType=<value>
|
|
223
|
-
--description=<value>
|
|
224
|
-
--
|
|
225
|
-
--
|
|
226
|
-
--
|
|
227
|
-
|
|
228
|
-
--
|
|
229
|
-
--
|
|
230
|
-
|
|
217
|
+
-d, --directory=<value> [default: ./] root directory for where to store Component.
|
|
218
|
+
-h, --help Show CLI help.
|
|
219
|
+
--author=<value> Component Author
|
|
220
|
+
--authorEmail=<value> Component Author Email
|
|
221
|
+
--componentFamily=<value> Component Family (e.g. classic | canvas)
|
|
222
|
+
--componentName=<value> Component Name (e.g. Alert Ingestion)
|
|
223
|
+
--componentUseCaseType=<value> Component Use Case Type (e.g. ingestion| enrichment | remidiation)
|
|
224
|
+
--description=<value> Description (e.g. CrowdStrike Alert Ingestion Component)
|
|
225
|
+
--documentationReadmePath=<value> Absolute path to documentation.README.md file
|
|
226
|
+
--externalReadmePath=<value> Absolute path to EXTERNAL_README.md file
|
|
227
|
+
--externalymlPath=<value> Absolute path to external.yml file
|
|
228
|
+
--homepage=<value> Component Author Support URL
|
|
229
|
+
--keywords=<value> Enter keywords
|
|
230
|
+
--logoPath=<value> URL or absolute path to logo file. Image should be in 1:1 aspect ratio and min
|
|
231
|
+
resolution 200x200
|
|
232
|
+
--overviewImagePath=<value> URL or absolute path to overview image file. Min resolution 1100x660
|
|
233
|
+
--readmePath=<value> Absolute path to README.md file
|
|
234
|
+
--sspPath=<value> Absolute path to .ssp file
|
|
235
|
+
--vendor=<value> Vendor (e.g. CrowdStrike)
|
|
231
236
|
|
|
232
237
|
DESCRIPTION
|
|
233
238
|
Scaffold a new Component
|
|
234
239
|
```
|
|
235
240
|
|
|
236
|
-
_See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
241
|
+
_See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/component/create.js)_
|
|
237
242
|
|
|
238
243
|
## `sw-tsdk-connector component:image`
|
|
239
244
|
|
|
@@ -255,7 +260,7 @@ DESCRIPTION
|
|
|
255
260
|
Update a Component image.
|
|
256
261
|
```
|
|
257
262
|
|
|
258
|
-
_See code: [lib/commands/component/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
263
|
+
_See code: [lib/commands/component/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/component/image.js)_
|
|
259
264
|
|
|
260
265
|
## `sw-tsdk-connector component:ssp`
|
|
261
266
|
|
|
@@ -276,7 +281,7 @@ DESCRIPTION
|
|
|
276
281
|
Update an SSP.
|
|
277
282
|
```
|
|
278
283
|
|
|
279
|
-
_See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
284
|
+
_See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/component/ssp.js)_
|
|
280
285
|
|
|
281
286
|
## `sw-tsdk-connector connector:build`
|
|
282
287
|
|
|
@@ -306,7 +311,7 @@ DESCRIPTION
|
|
|
306
311
|
Builds a local docker image of the connector.
|
|
307
312
|
```
|
|
308
313
|
|
|
309
|
-
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
314
|
+
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/build.js)_
|
|
310
315
|
|
|
311
316
|
## `sw-tsdk-connector connector:create`
|
|
312
317
|
|
|
@@ -341,7 +346,7 @@ DESCRIPTION
|
|
|
341
346
|
Scaffold a new connector
|
|
342
347
|
```
|
|
343
348
|
|
|
344
|
-
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
349
|
+
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/create.js)_
|
|
345
350
|
|
|
346
351
|
## `sw-tsdk-connector connector:create:openapi`
|
|
347
352
|
|
|
@@ -370,7 +375,7 @@ DESCRIPTION
|
|
|
370
375
|
Scaffold a new connector
|
|
371
376
|
```
|
|
372
377
|
|
|
373
|
-
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
378
|
+
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/create/openapi.js)_
|
|
374
379
|
|
|
375
380
|
## `sw-tsdk-connector connector:create:source`
|
|
376
381
|
|
|
@@ -388,7 +393,7 @@ DESCRIPTION
|
|
|
388
393
|
Generates 11x source from 10x
|
|
389
394
|
```
|
|
390
395
|
|
|
391
|
-
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
396
|
+
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/create/source.js)_
|
|
392
397
|
|
|
393
398
|
## `sw-tsdk-connector connector:lint`
|
|
394
399
|
|
|
@@ -411,7 +416,7 @@ DESCRIPTION
|
|
|
411
416
|
Use to lint the connector
|
|
412
417
|
```
|
|
413
418
|
|
|
414
|
-
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
419
|
+
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/lint.js)_
|
|
415
420
|
|
|
416
421
|
## `sw-tsdk-connector connector:logo`
|
|
417
422
|
|
|
@@ -430,7 +435,7 @@ DESCRIPTION
|
|
|
430
435
|
Update a connector.
|
|
431
436
|
```
|
|
432
437
|
|
|
433
|
-
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
438
|
+
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/logo.js)_
|
|
434
439
|
|
|
435
440
|
## `sw-tsdk-connector connector:sign`
|
|
436
441
|
|
|
@@ -455,7 +460,7 @@ DESCRIPTION
|
|
|
455
460
|
Builds a local docker image of the connector.
|
|
456
461
|
```
|
|
457
462
|
|
|
458
|
-
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
463
|
+
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/sign.js)_
|
|
459
464
|
|
|
460
465
|
## `sw-tsdk-connector connector:update`
|
|
461
466
|
|
|
@@ -475,7 +480,7 @@ DESCRIPTION
|
|
|
475
480
|
Update a connector.
|
|
476
481
|
```
|
|
477
482
|
|
|
478
|
-
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
483
|
+
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/update.js)_
|
|
479
484
|
|
|
480
485
|
## `sw-tsdk-connector connector:validate`
|
|
481
486
|
|
|
@@ -498,7 +503,7 @@ DESCRIPTION
|
|
|
498
503
|
Use to validate an integration
|
|
499
504
|
```
|
|
500
505
|
|
|
501
|
-
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
506
|
+
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/connector/validate.js)_
|
|
502
507
|
|
|
503
508
|
## `sw-tsdk-connector description:action`
|
|
504
509
|
|
|
@@ -519,7 +524,7 @@ DESCRIPTION
|
|
|
519
524
|
Use to generate action description
|
|
520
525
|
```
|
|
521
526
|
|
|
522
|
-
_See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
527
|
+
_See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/description/action.js)_
|
|
523
528
|
|
|
524
529
|
## `sw-tsdk-connector description:actions`
|
|
525
530
|
|
|
@@ -539,7 +544,7 @@ DESCRIPTION
|
|
|
539
544
|
Use to generate description for all actions
|
|
540
545
|
```
|
|
541
546
|
|
|
542
|
-
_See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
547
|
+
_See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/description/actions.js)_
|
|
543
548
|
|
|
544
549
|
## `sw-tsdk-connector description:component`
|
|
545
550
|
|
|
@@ -562,7 +567,7 @@ DESCRIPTION
|
|
|
562
567
|
Use to generate component descriptions
|
|
563
568
|
```
|
|
564
569
|
|
|
565
|
-
_See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
570
|
+
_See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/description/component.js)_
|
|
566
571
|
|
|
567
572
|
## `sw-tsdk-connector description:connector`
|
|
568
573
|
|
|
@@ -582,7 +587,7 @@ DESCRIPTION
|
|
|
582
587
|
Use to generate connector descriptions
|
|
583
588
|
```
|
|
584
589
|
|
|
585
|
-
_See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
590
|
+
_See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/description/connector.js)_
|
|
586
591
|
|
|
587
592
|
## `sw-tsdk-connector playbook:create`
|
|
588
593
|
|
|
@@ -592,28 +597,33 @@ Scaffold a new playbook
|
|
|
592
597
|
USAGE
|
|
593
598
|
$ sw-tsdk-connector playbook:create [-d <value>] [--playbookFamily <value>] [--playbookName <value>] [--keywords
|
|
594
599
|
<value>] [--description <value>] [--logoPath <value>] [--overviewImagePath <value>] [--sspPath <value>] [--author
|
|
595
|
-
<value>] [--authorEmail <value>] [--homepage <value>] [
|
|
600
|
+
<value>] [--authorEmail <value>] [--homepage <value>] [--readmePath <value>] [--externalReadmePath <value>]
|
|
601
|
+
[--documentationReadmePath <value>] [--externalymlPath <value>] [-h]
|
|
596
602
|
|
|
597
603
|
FLAGS
|
|
598
|
-
-d, --directory=<value>
|
|
599
|
-
-h, --help
|
|
600
|
-
--author=<value>
|
|
601
|
-
--authorEmail=<value>
|
|
602
|
-
--description=<value>
|
|
603
|
-
--
|
|
604
|
-
--
|
|
605
|
-
--
|
|
606
|
-
|
|
607
|
-
--
|
|
608
|
-
--
|
|
609
|
-
|
|
610
|
-
--
|
|
604
|
+
-d, --directory=<value> [default: ./] root directory for where to store Playbook.
|
|
605
|
+
-h, --help Show CLI help.
|
|
606
|
+
--author=<value> Playbook Author
|
|
607
|
+
--authorEmail=<value> Playbook Author Email
|
|
608
|
+
--description=<value> Description (e.g. Text Aggregator Description)
|
|
609
|
+
--documentationReadmePath=<value> Absolute path to documentation.README.md file
|
|
610
|
+
--externalReadmePath=<value> Absolute path to EXTERNAL_README.md file
|
|
611
|
+
--externalymlPath=<value> Absolute path to external.yml file
|
|
612
|
+
--homepage=<value> Playbook Author Support URL
|
|
613
|
+
--keywords=<value> Enter keywords
|
|
614
|
+
--logoPath=<value> URL or absolute path to logo file. Image should be in 1:1 aspect ratio and min
|
|
615
|
+
resolution 200x200
|
|
616
|
+
--overviewImagePath=<value> URL or absolute path to overview image file. Min resolution 1100x660
|
|
617
|
+
--playbookFamily=<value> Playbook Family (e.g. classic | canvas)
|
|
618
|
+
--playbookName=<value> Playbook Name (e.g. Text Aggregator)
|
|
619
|
+
--readmePath=<value> Absolute path to README.md file
|
|
620
|
+
--sspPath=<value> Absolute path to .ssp file
|
|
611
621
|
|
|
612
622
|
DESCRIPTION
|
|
613
623
|
Scaffold a new playbook
|
|
614
624
|
```
|
|
615
625
|
|
|
616
|
-
_See code: [lib/commands/playbook/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
626
|
+
_See code: [lib/commands/playbook/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/playbook/create.js)_
|
|
617
627
|
|
|
618
628
|
## `sw-tsdk-connector playbook:image`
|
|
619
629
|
|
|
@@ -635,7 +645,7 @@ DESCRIPTION
|
|
|
635
645
|
Update a Playbook image.
|
|
636
646
|
```
|
|
637
647
|
|
|
638
|
-
_See code: [lib/commands/playbook/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
648
|
+
_See code: [lib/commands/playbook/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/playbook/image.js)_
|
|
639
649
|
|
|
640
650
|
## `sw-tsdk-connector playbook:ssp`
|
|
641
651
|
|
|
@@ -655,7 +665,7 @@ DESCRIPTION
|
|
|
655
665
|
Update an SSP
|
|
656
666
|
```
|
|
657
667
|
|
|
658
|
-
_See code: [lib/commands/playbook/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
668
|
+
_See code: [lib/commands/playbook/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/playbook/ssp.js)_
|
|
659
669
|
|
|
660
670
|
## `sw-tsdk-connector solution:create`
|
|
661
671
|
|
|
@@ -685,7 +695,7 @@ DESCRIPTION
|
|
|
685
695
|
Scaffold a new Solution
|
|
686
696
|
```
|
|
687
697
|
|
|
688
|
-
_See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
698
|
+
_See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/solution/create.js)_
|
|
689
699
|
|
|
690
700
|
## `sw-tsdk-connector solution:image`
|
|
691
701
|
|
|
@@ -707,7 +717,7 @@ DESCRIPTION
|
|
|
707
717
|
Update a Solution image.
|
|
708
718
|
```
|
|
709
719
|
|
|
710
|
-
_See code: [lib/commands/solution/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
720
|
+
_See code: [lib/commands/solution/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/solution/image.js)_
|
|
711
721
|
|
|
712
722
|
## `sw-tsdk-connector solution:ssp`
|
|
713
723
|
|
|
@@ -728,7 +738,7 @@ DESCRIPTION
|
|
|
728
738
|
Update an SSP.
|
|
729
739
|
```
|
|
730
740
|
|
|
731
|
-
_See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
741
|
+
_See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/solution/ssp.js)_
|
|
732
742
|
|
|
733
743
|
## `sw-tsdk-connector widget:create`
|
|
734
744
|
|
|
@@ -758,7 +768,7 @@ DESCRIPTION
|
|
|
758
768
|
Scaffold a new widget
|
|
759
769
|
```
|
|
760
770
|
|
|
761
|
-
_See code: [lib/commands/widget/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
771
|
+
_See code: [lib/commands/widget/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/widget/create.js)_
|
|
762
772
|
|
|
763
773
|
## `sw-tsdk-connector widget:image`
|
|
764
774
|
|
|
@@ -779,7 +789,7 @@ DESCRIPTION
|
|
|
779
789
|
Update a Widget image.
|
|
780
790
|
```
|
|
781
791
|
|
|
782
|
-
_See code: [lib/commands/widget/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
792
|
+
_See code: [lib/commands/widget/image.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/widget/image.js)_
|
|
783
793
|
|
|
784
794
|
## `sw-tsdk-connector widget:ssp`
|
|
785
795
|
|
|
@@ -799,5 +809,5 @@ DESCRIPTION
|
|
|
799
809
|
Update an SSP
|
|
800
810
|
```
|
|
801
811
|
|
|
802
|
-
_See code: [lib/commands/widget/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.
|
|
812
|
+
_See code: [lib/commands/widget/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.9.2/lib/commands/widget/ssp.js)_
|
|
803
813
|
<!-- commandsstop -->
|
|
@@ -33,6 +33,10 @@ export declare class Create extends Base {
|
|
|
33
33
|
author: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
34
34
|
authorEmail: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
35
35
|
homepage: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
36
|
+
readmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
37
|
+
externalReadmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
38
|
+
documentationReadmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
39
|
+
externalymlPath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
36
40
|
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
37
41
|
};
|
|
38
42
|
run(): Promise<void>;
|
|
@@ -92,6 +92,26 @@ class Create extends core_2.Base {
|
|
|
92
92
|
name: 'homepage',
|
|
93
93
|
message: 'Author URL',
|
|
94
94
|
default: 'https://swimlane.com',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'input',
|
|
98
|
+
name: 'readmePath',
|
|
99
|
+
message: 'Absolute path to README.md file (optional)',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: 'input',
|
|
103
|
+
name: 'externalReadmePath',
|
|
104
|
+
message: 'Absolute path to EXTERNAL_README.md file (optional)',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: 'input',
|
|
108
|
+
name: 'documentationReadmePath',
|
|
109
|
+
message: 'Absolute path to documentation.README.md file (optional)',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: 'input',
|
|
113
|
+
name: 'externalymlPath',
|
|
114
|
+
message: 'Absolute path to external.yml file (optional)',
|
|
95
115
|
}];
|
|
96
116
|
const filteredQuestions = masterQuestions.filter(q => !flags[q.name]);
|
|
97
117
|
const answers = Object.assign(await inquirer_1.default.prompt(filteredQuestions), flags);
|
|
@@ -107,6 +127,9 @@ class Create extends core_2.Base {
|
|
|
107
127
|
const componentDirectory = (0, node_path_1.join)(directory, componentFamily, `${name}`);
|
|
108
128
|
await (0, fs_extra_1.ensureDir)(componentDirectory);
|
|
109
129
|
const title = await (0, connector_1.titleCaseString)(`${answers.vendor} ${answers.componentName}`);
|
|
130
|
+
if (typeof answers.keywords === 'string') {
|
|
131
|
+
answers.keywords = answers.keywords.split(',').map(x => x.trim());
|
|
132
|
+
}
|
|
110
133
|
const component = {
|
|
111
134
|
vendor: answers.vendor,
|
|
112
135
|
name: name,
|
|
@@ -180,6 +203,30 @@ class Create extends core_2.Base {
|
|
|
180
203
|
else {
|
|
181
204
|
errors.push('Invalid ssp file provided');
|
|
182
205
|
}
|
|
206
|
+
if (answers.readmePath) {
|
|
207
|
+
core_1.ux.action.start('Processing README.md File');
|
|
208
|
+
const destinationPath = path.join(componentDirectory, 'README.md');
|
|
209
|
+
await fs.promises.copyFile(answers.readmePath, destinationPath);
|
|
210
|
+
core_1.ux.action.stop();
|
|
211
|
+
}
|
|
212
|
+
if (answers.externalReadmePath) {
|
|
213
|
+
core_1.ux.action.start('Processing EXTERNAL_README.md File');
|
|
214
|
+
const destinationPath = path.join(componentDirectory, 'EXTERNAL_README.md');
|
|
215
|
+
await fs.promises.copyFile(answers.externalReadmePath, destinationPath);
|
|
216
|
+
core_1.ux.action.stop();
|
|
217
|
+
}
|
|
218
|
+
if (answers.documentationReadmePath) {
|
|
219
|
+
core_1.ux.action.start('Processing documentation.README.md File');
|
|
220
|
+
const destinationPath = path.join(componentDirectory, 'documentation.README.md');
|
|
221
|
+
await fs.promises.copyFile(answers.documentationReadmePath, destinationPath);
|
|
222
|
+
core_1.ux.action.stop();
|
|
223
|
+
}
|
|
224
|
+
if (answers.externalymlPath) {
|
|
225
|
+
core_1.ux.action.start('Processing external.yml File');
|
|
226
|
+
const destinationPath = path.join(componentDirectory, 'external.yml');
|
|
227
|
+
await fs.promises.copyFile(answers.externalymlPath, destinationPath);
|
|
228
|
+
core_1.ux.action.stop();
|
|
229
|
+
}
|
|
183
230
|
const manifestFilePath = (0, node_path_1.join)(componentDirectory, 'manifest.yml');
|
|
184
231
|
await (0, fs_extra_1.writeFile)(manifestFilePath, js_yaml_1.default.dump(component, {
|
|
185
232
|
indent: 2,
|
|
@@ -209,10 +256,14 @@ Create.flags = {
|
|
|
209
256
|
description: core_1.Flags.string({ description: 'Description (e.g. CrowdStrike Alert Ingestion Component)' }),
|
|
210
257
|
logoPath: core_1.Flags.string({ description: 'URL or absolute path to logo file. Image should be in 1:1 aspect ratio and min resolution 200x200' }),
|
|
211
258
|
overviewImagePath: core_1.Flags.string({ description: 'URL or absolute path to overview image file. Min resolution 1100x660' }),
|
|
212
|
-
sspPath: core_1.Flags.string({ description: '
|
|
259
|
+
sspPath: core_1.Flags.string({ description: 'Absolute path to .ssp file' }),
|
|
213
260
|
author: core_1.Flags.string({ description: 'Component Author' }),
|
|
214
261
|
authorEmail: core_1.Flags.string({ description: 'Component Author Email' }),
|
|
215
262
|
homepage: core_1.Flags.string({ description: 'Component Author Support URL' }),
|
|
263
|
+
readmePath: core_1.Flags.string({ description: 'Absolute path to README.md file' }),
|
|
264
|
+
externalReadmePath: core_1.Flags.string({ description: 'Absolute path to EXTERNAL_README.md file' }),
|
|
265
|
+
documentationReadmePath: core_1.Flags.string({ description: 'Absolute path to documentation.README.md file' }),
|
|
266
|
+
externalymlPath: core_1.Flags.string({ description: 'Absolute path to external.yml file' }),
|
|
216
267
|
help: core_1.Flags.help({ char: 'h' }),
|
|
217
268
|
};
|
|
218
269
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/component/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,yCAAgI;AAqBhI,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/component/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,yCAAgI;AAqBhI,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;IA6B9B,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;Q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aces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
29
29
|
authorEmail: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
30
30
|
homepage: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
31
|
+
readmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
32
|
+
externalReadmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
33
|
+
documentationReadmePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
34
|
+
externalymlPath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
31
35
|
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
32
36
|
};
|
|
33
37
|
run(): Promise<void>;
|
|
@@ -78,6 +78,26 @@ class Create extends core_2.Base {
|
|
|
78
78
|
message: 'Author URL',
|
|
79
79
|
default: 'https://swimlane.com',
|
|
80
80
|
},
|
|
81
|
+
{
|
|
82
|
+
type: 'input',
|
|
83
|
+
name: 'readmePath',
|
|
84
|
+
message: 'Absolute path to README.md file (optional)',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'input',
|
|
88
|
+
name: 'externalReadmePath',
|
|
89
|
+
message: 'Absolute path to EXTERNAL_README.md file (optional)',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: 'input',
|
|
93
|
+
name: 'documentationReadmePath',
|
|
94
|
+
message: 'Absolute path to documentation.README.md file (optional)',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'input',
|
|
98
|
+
name: 'externalymlPath',
|
|
99
|
+
message: 'Absolute path to external.yml file (optional)',
|
|
100
|
+
},
|
|
81
101
|
];
|
|
82
102
|
const filteredQuestions = masterQuestions.filter(q => !flags[q.name]);
|
|
83
103
|
const answers = Object.assign(await inquirer_1.default.prompt(filteredQuestions), flags);
|
|
@@ -87,6 +107,9 @@ class Create extends core_2.Base {
|
|
|
87
107
|
errors.push('Playbook Name is required.');
|
|
88
108
|
}
|
|
89
109
|
const name = (0, snake_case_1.snakeCase)(`${answers.playbookName}`.toLocaleLowerCase());
|
|
110
|
+
if (typeof answers.keywords === 'string') {
|
|
111
|
+
answers.keywords = answers.keywords.split(',').map(x => x.trim());
|
|
112
|
+
}
|
|
90
113
|
const playbookDirectory = (0, node_path_1.join)(directory, playbookFamily, `${name}`);
|
|
91
114
|
await (0, fs_extra_1.ensureDir)(playbookDirectory);
|
|
92
115
|
const title = await (0, connector_1.titleCaseString)(`${answers.playbookName}`);
|
|
@@ -160,6 +183,30 @@ class Create extends core_2.Base {
|
|
|
160
183
|
else {
|
|
161
184
|
errors.push('Invalid ssp file provided');
|
|
162
185
|
}
|
|
186
|
+
if (answers.readmePath) {
|
|
187
|
+
core_1.ux.action.start('Processing README.md File');
|
|
188
|
+
const destinationPath = path.join(playbookDirectory, 'README.md');
|
|
189
|
+
await fs.promises.copyFile(answers.readmePath, destinationPath);
|
|
190
|
+
core_1.ux.action.stop();
|
|
191
|
+
}
|
|
192
|
+
if (answers.externalReadmePath) {
|
|
193
|
+
core_1.ux.action.start('Processing EXTERNAL_README.md File');
|
|
194
|
+
const destinationPath = path.join(playbookDirectory, 'EXTERNAL_README.md');
|
|
195
|
+
await fs.promises.copyFile(answers.externalReadmePath, destinationPath);
|
|
196
|
+
core_1.ux.action.stop();
|
|
197
|
+
}
|
|
198
|
+
if (answers.documentationReadmePath) {
|
|
199
|
+
core_1.ux.action.start('Processing documentation.README.md File');
|
|
200
|
+
const destinationPath = path.join(playbookDirectory, 'documentation.README.md');
|
|
201
|
+
await fs.promises.copyFile(answers.documentationReadmePath, destinationPath);
|
|
202
|
+
core_1.ux.action.stop();
|
|
203
|
+
}
|
|
204
|
+
if (answers.externalymlPath) {
|
|
205
|
+
core_1.ux.action.start('Processing external.yml File');
|
|
206
|
+
const destinationPath = path.join(playbookDirectory, 'external.yml');
|
|
207
|
+
await fs.promises.copyFile(answers.externalymlPath, destinationPath);
|
|
208
|
+
core_1.ux.action.stop();
|
|
209
|
+
}
|
|
163
210
|
const manifestFilePath = (0, node_path_1.join)(playbookDirectory, 'manifest.yml');
|
|
164
211
|
await (0, fs_extra_1.writeFile)(manifestFilePath, js_yaml_1.default.dump(playbook, {
|
|
165
212
|
indent: 2,
|
|
@@ -187,10 +234,14 @@ Create.flags = {
|
|
|
187
234
|
description: core_1.Flags.string({ description: 'Description (e.g. Text Aggregator Description)' }),
|
|
188
235
|
logoPath: core_1.Flags.string({ description: 'URL or absolute path to logo file. Image should be in 1:1 aspect ratio and min resolution 200x200' }),
|
|
189
236
|
overviewImagePath: core_1.Flags.string({ description: 'URL or absolute path to overview image file. Min resolution 1100x660' }),
|
|
190
|
-
sspPath: core_1.Flags.string({ description: '
|
|
237
|
+
sspPath: core_1.Flags.string({ description: 'Absolute path to .ssp file' }),
|
|
191
238
|
author: core_1.Flags.string({ description: 'Playbook Author' }),
|
|
192
239
|
authorEmail: core_1.Flags.string({ description: 'Playbook Author Email' }),
|
|
193
240
|
homepage: core_1.Flags.string({ description: 'Playbook Author Support URL' }),
|
|
241
|
+
readmePath: core_1.Flags.string({ description: 'Absolute path to README.md file' }),
|
|
242
|
+
externalReadmePath: core_1.Flags.string({ description: 'Absolute path to EXTERNAL_README.md file' }),
|
|
243
|
+
documentationReadmePath: core_1.Flags.string({ description: 'Absolute path to documentation.README.md file' }),
|
|
244
|
+
externalymlPath: core_1.Flags.string({ description: 'Absolute path to external.yml file' }),
|
|
194
245
|
help: core_1.Flags.help({ char: 'h' }),
|
|
195
246
|
};
|
|
196
247
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/playbook/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,yCAAuF;AAkBvF,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/playbook/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,yCAAuF;AAkBvF,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;IA2B9B,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAExC,IAAI,EAAC,SAAS,EAAC,GAAG,KAAK,CAAA;QACvB,SAAS,GAAG,IAAA,mBAAO,EAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QAE/C,IAAI;YACF,MAAM,kBAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;SACjC;QAAC,MAAM;YACN,IAAI,CAAC,KAAK,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAA;SAC5C;QAED,MAAM,eAAe,GAAG;YACtB;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,sCAAsC;aAChD;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,gDAAgD;aAC1D;YACD;gBACE,IAAI,E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string[];
|
|
33
|
+
keywords: string[] | string;
|
|
34
|
+
readmePath?: string;
|
|
35
|
+
externalReadmePath?: string;
|
|
36
|
+
documentationReadmePath?: string;
|
|
37
|
+
externalymlPath?: string;
|
|
34
38
|
};
|
|
35
39
|
export type SolutionQuestions = {
|
|
36
40
|
solutionFamily: string;
|
|
@@ -54,7 +58,11 @@ export type PlaybookQuestions = {
|
|
|
54
58
|
author: string;
|
|
55
59
|
authorEmail: string;
|
|
56
60
|
homepage: string;
|
|
57
|
-
keywords: string[];
|
|
61
|
+
keywords: string[] | string;
|
|
62
|
+
readmePath?: string;
|
|
63
|
+
externalReadmePath?: string;
|
|
64
|
+
documentationReadmePath?: string;
|
|
65
|
+
externalymlPath?: string;
|
|
58
66
|
};
|
|
59
67
|
export type WidgetQuestions = {
|
|
60
68
|
widgetFamily: string;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.9.
|
|
2
|
+
"version": "3.9.2",
|
|
3
3
|
"commands": {
|
|
4
4
|
"action:add": {
|
|
5
5
|
"id": "action:add",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"sspPath": {
|
|
151
151
|
"name": "sspPath",
|
|
152
152
|
"type": "option",
|
|
153
|
-
"description": "
|
|
153
|
+
"description": "Absolute path to .ssp file",
|
|
154
154
|
"multiple": false
|
|
155
155
|
},
|
|
156
156
|
"author": {
|
|
@@ -171,6 +171,30 @@
|
|
|
171
171
|
"description": "Component Author Support URL",
|
|
172
172
|
"multiple": false
|
|
173
173
|
},
|
|
174
|
+
"readmePath": {
|
|
175
|
+
"name": "readmePath",
|
|
176
|
+
"type": "option",
|
|
177
|
+
"description": "Absolute path to README.md file",
|
|
178
|
+
"multiple": false
|
|
179
|
+
},
|
|
180
|
+
"externalReadmePath": {
|
|
181
|
+
"name": "externalReadmePath",
|
|
182
|
+
"type": "option",
|
|
183
|
+
"description": "Absolute path to EXTERNAL_README.md file",
|
|
184
|
+
"multiple": false
|
|
185
|
+
},
|
|
186
|
+
"documentationReadmePath": {
|
|
187
|
+
"name": "documentationReadmePath",
|
|
188
|
+
"type": "option",
|
|
189
|
+
"description": "Absolute path to documentation.README.md file",
|
|
190
|
+
"multiple": false
|
|
191
|
+
},
|
|
192
|
+
"externalymlPath": {
|
|
193
|
+
"name": "externalymlPath",
|
|
194
|
+
"type": "option",
|
|
195
|
+
"description": "Absolute path to external.yml file",
|
|
196
|
+
"multiple": false
|
|
197
|
+
},
|
|
174
198
|
"help": {
|
|
175
199
|
"name": "help",
|
|
176
200
|
"type": "boolean",
|
|
@@ -1035,7 +1059,7 @@
|
|
|
1035
1059
|
"sspPath": {
|
|
1036
1060
|
"name": "sspPath",
|
|
1037
1061
|
"type": "option",
|
|
1038
|
-
"description": "
|
|
1062
|
+
"description": "Absolute path to .ssp file",
|
|
1039
1063
|
"multiple": false
|
|
1040
1064
|
},
|
|
1041
1065
|
"author": {
|
|
@@ -1056,6 +1080,30 @@
|
|
|
1056
1080
|
"description": "Playbook Author Support URL",
|
|
1057
1081
|
"multiple": false
|
|
1058
1082
|
},
|
|
1083
|
+
"readmePath": {
|
|
1084
|
+
"name": "readmePath",
|
|
1085
|
+
"type": "option",
|
|
1086
|
+
"description": "Absolute path to README.md file",
|
|
1087
|
+
"multiple": false
|
|
1088
|
+
},
|
|
1089
|
+
"externalReadmePath": {
|
|
1090
|
+
"name": "externalReadmePath",
|
|
1091
|
+
"type": "option",
|
|
1092
|
+
"description": "Absolute path to EXTERNAL_README.md file",
|
|
1093
|
+
"multiple": false
|
|
1094
|
+
},
|
|
1095
|
+
"documentationReadmePath": {
|
|
1096
|
+
"name": "documentationReadmePath",
|
|
1097
|
+
"type": "option",
|
|
1098
|
+
"description": "Absolute path to documentation.README.md file",
|
|
1099
|
+
"multiple": false
|
|
1100
|
+
},
|
|
1101
|
+
"externalymlPath": {
|
|
1102
|
+
"name": "externalymlPath",
|
|
1103
|
+
"type": "option",
|
|
1104
|
+
"description": "Absolute path to external.yml file",
|
|
1105
|
+
"multiple": false
|
|
1106
|
+
},
|
|
1059
1107
|
"help": {
|
|
1060
1108
|
"name": "help",
|
|
1061
1109
|
"type": "boolean",
|
package/package.json
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@apidevtools/json-schema-ref-parser": "10.1.0",
|
|
8
8
|
"@oclif/core": "2.8.5",
|
|
9
|
-
"@sw-tsdk/common": "^3.9.
|
|
10
|
-
"@sw-tsdk/connector": "^3.9.
|
|
11
|
-
"@sw-tsdk/core": "^3.9.
|
|
12
|
-
"@sw-tsdk/docker": "^3.9.
|
|
9
|
+
"@sw-tsdk/common": "^3.9.2",
|
|
10
|
+
"@sw-tsdk/connector": "^3.9.2",
|
|
11
|
+
"@sw-tsdk/core": "^3.9.2",
|
|
12
|
+
"@sw-tsdk/docker": "^3.9.2",
|
|
13
13
|
"@swimlane/connector-interfaces": "1.11.0",
|
|
14
14
|
"@swimlane/cosign": "1.4.1",
|
|
15
15
|
"@swimlane/docker-reference": "2.0.1",
|
|
@@ -95,6 +95,6 @@
|
|
|
95
95
|
"posttest": "yarn lint",
|
|
96
96
|
"dev:setup": "npm link"
|
|
97
97
|
},
|
|
98
|
-
"version": "3.9.
|
|
99
|
-
"gitHead": "
|
|
98
|
+
"version": "3.9.2",
|
|
99
|
+
"gitHead": "cd2fcf6dc457eb607ed0655689f26d3730190e9b"
|
|
100
100
|
}
|