@trayio/cdk-cli 4.6.0 → 4.8.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 CHANGED
@@ -19,7 +19,7 @@ $ npm install -g @trayio/cdk-cli
19
19
  $ tray-cdk COMMAND
20
20
  running command...
21
21
  $ tray-cdk (--version|-v)
22
- @trayio/cdk-cli/4.6.0 linux-x64 node-v18.20.2
22
+ @trayio/cdk-cli/4.8.0 linux-x64 node-v18.20.2
23
23
  $ tray-cdk --help [COMMAND]
24
24
  USAGE
25
25
  $ tray-cdk COMMAND
@@ -30,7 +30,7 @@ USAGE
30
30
  # Commands
31
31
 
32
32
  <!-- commands -->
33
- * [`tray-cdk`](#tray-cdk)
33
+ * [`tray-cdk .`](#tray-cdk-)
34
34
  * [`tray-cdk autocomplete [SHELL]`](#tray-cdk-autocomplete-shell)
35
35
  * [`tray-cdk connector add-operation [OPERATIONNAME] [OPERATIONTYPE]`](#tray-cdk-connector-add-operation-operationname-operationtype)
36
36
  * [`tray-cdk connector build`](#tray-cdk-connector-build)
@@ -39,16 +39,26 @@ USAGE
39
39
  * [`tray-cdk connector test [OPERATIONNAME]`](#tray-cdk-connector-test-operationname)
40
40
  * [`tray-cdk deployment create`](#tray-cdk-deployment-create)
41
41
  * [`tray-cdk deployment get [CONNECTORNAME] [CONNECTORVERSION] [UUID]`](#tray-cdk-deployment-get-connectorname-connectorversion-uuid)
42
- * [`tray-cdk help [COMMANDS]`](#tray-cdk-help-commands)
42
+ * [`tray-cdk help [COMMAND]`](#tray-cdk-help-command)
43
43
  * [`tray-cdk permissions add [CONNECTORNAME] [CONNECTORVERSION]`](#tray-cdk-permissions-add-connectorname-connectorversion)
44
44
  * [`tray-cdk permissions list [CONNECTORNAME] [CONNECTORVERSION]`](#tray-cdk-permissions-list-connectorname-connectorversion)
45
+ * [`tray-cdk plugins`](#tray-cdk-plugins)
46
+ * [`tray-cdk plugins add PLUGIN`](#tray-cdk-plugins-add-plugin)
47
+ * [`tray-cdk plugins:inspect PLUGIN...`](#tray-cdk-pluginsinspect-plugin)
48
+ * [`tray-cdk plugins install PLUGIN`](#tray-cdk-plugins-install-plugin)
49
+ * [`tray-cdk plugins link PATH`](#tray-cdk-plugins-link-path)
50
+ * [`tray-cdk plugins remove [PLUGIN]`](#tray-cdk-plugins-remove-plugin)
51
+ * [`tray-cdk plugins reset`](#tray-cdk-plugins-reset)
52
+ * [`tray-cdk plugins uninstall [PLUGIN]`](#tray-cdk-plugins-uninstall-plugin)
53
+ * [`tray-cdk plugins unlink [PLUGIN]`](#tray-cdk-plugins-unlink-plugin)
54
+ * [`tray-cdk plugins update`](#tray-cdk-plugins-update)
45
55
  * [`tray-cdk version`](#tray-cdk-version)
46
56
 
47
- ## `tray-cdk`
57
+ ## `tray-cdk .`
48
58
 
49
59
  ```
50
60
  USAGE
51
- $ tray-cdk
61
+ $ tray-cdk .
52
62
  ```
53
63
 
54
64
  ## `tray-cdk autocomplete [SHELL]`
@@ -213,16 +223,16 @@ EXAMPLES
213
223
  $ tray-cdk deployment get my-connector 1.0 3f1de598-d405-4801-9eec-6fe79e8393d3 -t
214
224
  ```
215
225
 
216
- ## `tray-cdk help [COMMANDS]`
226
+ ## `tray-cdk help [COMMAND]`
217
227
 
218
228
  Display help for tray-cdk.
219
229
 
220
230
  ```
221
231
  USAGE
222
- $ tray-cdk help [COMMANDS] [-n]
232
+ $ tray-cdk help [COMMAND] [-n]
223
233
 
224
234
  ARGUMENTS
225
- COMMANDS Command to show help for.
235
+ COMMAND Command to show help for.
226
236
 
227
237
  FLAGS
228
238
  -n, --nested-commands Include all nested commands in the output.
@@ -231,7 +241,7 @@ DESCRIPTION
231
241
  Display help for tray-cdk.
232
242
  ```
233
243
 
234
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.12/src/commands/help.ts)_
244
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.21/src/commands/help.ts)_
235
245
 
236
246
  ## `tray-cdk permissions add [CONNECTORNAME] [CONNECTORVERSION]`
237
247
 
@@ -286,6 +296,295 @@ EXAMPLES
286
296
  $ tray-cdk permissions list my-connector 1.0
287
297
  ```
288
298
 
299
+ ## `tray-cdk plugins`
300
+
301
+ List installed plugins.
302
+
303
+ ```
304
+ USAGE
305
+ $ tray-cdk plugins [--json] [--core]
306
+
307
+ FLAGS
308
+ --core Show core plugins.
309
+
310
+ GLOBAL FLAGS
311
+ --json Format output as json.
312
+
313
+ DESCRIPTION
314
+ List installed plugins.
315
+
316
+ EXAMPLES
317
+ $ tray-cdk plugins
318
+ ```
319
+
320
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/index.ts)_
321
+
322
+ ## `tray-cdk plugins add PLUGIN`
323
+
324
+ Installs a plugin into tray-cdk.
325
+
326
+ ```
327
+ USAGE
328
+ $ tray-cdk plugins add PLUGIN [--json] [-f] [-h] [-s | -v]
329
+
330
+ ARGUMENTS
331
+ PLUGIN Plugin to install.
332
+
333
+ FLAGS
334
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
335
+ -h, --help Show CLI help.
336
+ -s, --silent Silences npm output.
337
+ -v, --verbose Show verbose npm output.
338
+
339
+ GLOBAL FLAGS
340
+ --json Format output as json.
341
+
342
+ DESCRIPTION
343
+ Installs a plugin into tray-cdk.
344
+
345
+ Uses bundled npm executable to install plugins into /home/runner/.local/share/@trayio/cdk-cli
346
+
347
+ Installation of a user-installed plugin will override a core plugin.
348
+
349
+ Use the TRAY_CDK_NPM_LOG_LEVEL environment variable to set the npm loglevel.
350
+ Use the TRAY_CDK_NPM_REGISTRY environment variable to set the npm registry.
351
+
352
+ ALIASES
353
+ $ tray-cdk plugins add
354
+
355
+ EXAMPLES
356
+ Install a plugin from npm registry.
357
+
358
+ $ tray-cdk plugins add myplugin
359
+
360
+ Install a plugin from a github url.
361
+
362
+ $ tray-cdk plugins add https://github.com/someuser/someplugin
363
+
364
+ Install a plugin from a github slug.
365
+
366
+ $ tray-cdk plugins add someuser/someplugin
367
+ ```
368
+
369
+ ## `tray-cdk plugins:inspect PLUGIN...`
370
+
371
+ Displays installation properties of a plugin.
372
+
373
+ ```
374
+ USAGE
375
+ $ tray-cdk plugins inspect PLUGIN...
376
+
377
+ ARGUMENTS
378
+ PLUGIN [default: .] Plugin to inspect.
379
+
380
+ FLAGS
381
+ -h, --help Show CLI help.
382
+ -v, --verbose
383
+
384
+ GLOBAL FLAGS
385
+ --json Format output as json.
386
+
387
+ DESCRIPTION
388
+ Displays installation properties of a plugin.
389
+
390
+ EXAMPLES
391
+ $ tray-cdk plugins inspect myplugin
392
+ ```
393
+
394
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/inspect.ts)_
395
+
396
+ ## `tray-cdk plugins install PLUGIN`
397
+
398
+ Installs a plugin into tray-cdk.
399
+
400
+ ```
401
+ USAGE
402
+ $ tray-cdk plugins install PLUGIN [--json] [-f] [-h] [-s | -v]
403
+
404
+ ARGUMENTS
405
+ PLUGIN Plugin to install.
406
+
407
+ FLAGS
408
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
409
+ -h, --help Show CLI help.
410
+ -s, --silent Silences npm output.
411
+ -v, --verbose Show verbose npm output.
412
+
413
+ GLOBAL FLAGS
414
+ --json Format output as json.
415
+
416
+ DESCRIPTION
417
+ Installs a plugin into tray-cdk.
418
+
419
+ Uses bundled npm executable to install plugins into /home/runner/.local/share/@trayio/cdk-cli
420
+
421
+ Installation of a user-installed plugin will override a core plugin.
422
+
423
+ Use the TRAY_CDK_NPM_LOG_LEVEL environment variable to set the npm loglevel.
424
+ Use the TRAY_CDK_NPM_REGISTRY environment variable to set the npm registry.
425
+
426
+ ALIASES
427
+ $ tray-cdk plugins add
428
+
429
+ EXAMPLES
430
+ Install a plugin from npm registry.
431
+
432
+ $ tray-cdk plugins install myplugin
433
+
434
+ Install a plugin from a github url.
435
+
436
+ $ tray-cdk plugins install https://github.com/someuser/someplugin
437
+
438
+ Install a plugin from a github slug.
439
+
440
+ $ tray-cdk plugins install someuser/someplugin
441
+ ```
442
+
443
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/install.ts)_
444
+
445
+ ## `tray-cdk plugins link PATH`
446
+
447
+ Links a plugin into the CLI for development.
448
+
449
+ ```
450
+ USAGE
451
+ $ tray-cdk plugins link PATH [-h] [--install] [-v]
452
+
453
+ ARGUMENTS
454
+ PATH [default: .] path to plugin
455
+
456
+ FLAGS
457
+ -h, --help Show CLI help.
458
+ -v, --verbose
459
+ --[no-]install Install dependencies after linking the plugin.
460
+
461
+ DESCRIPTION
462
+ Links a plugin into the CLI for development.
463
+ Installation of a linked plugin will override a user-installed or core plugin.
464
+
465
+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
466
+ command will override the user-installed or core plugin implementation. This is useful for development work.
467
+
468
+
469
+ EXAMPLES
470
+ $ tray-cdk plugins link myplugin
471
+ ```
472
+
473
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/link.ts)_
474
+
475
+ ## `tray-cdk plugins remove [PLUGIN]`
476
+
477
+ Removes a plugin from the CLI.
478
+
479
+ ```
480
+ USAGE
481
+ $ tray-cdk plugins remove [PLUGIN] [-h] [-v]
482
+
483
+ ARGUMENTS
484
+ PLUGIN plugin to uninstall
485
+
486
+ FLAGS
487
+ -h, --help Show CLI help.
488
+ -v, --verbose
489
+
490
+ DESCRIPTION
491
+ Removes a plugin from the CLI.
492
+
493
+ ALIASES
494
+ $ tray-cdk plugins unlink
495
+ $ tray-cdk plugins remove
496
+
497
+ EXAMPLES
498
+ $ tray-cdk plugins remove myplugin
499
+ ```
500
+
501
+ ## `tray-cdk plugins reset`
502
+
503
+ Remove all user-installed and linked plugins.
504
+
505
+ ```
506
+ USAGE
507
+ $ tray-cdk plugins reset [--hard] [--reinstall]
508
+
509
+ FLAGS
510
+ --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
511
+ --reinstall Reinstall all plugins after uninstalling.
512
+ ```
513
+
514
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/reset.ts)_
515
+
516
+ ## `tray-cdk plugins uninstall [PLUGIN]`
517
+
518
+ Removes a plugin from the CLI.
519
+
520
+ ```
521
+ USAGE
522
+ $ tray-cdk plugins uninstall [PLUGIN] [-h] [-v]
523
+
524
+ ARGUMENTS
525
+ PLUGIN plugin to uninstall
526
+
527
+ FLAGS
528
+ -h, --help Show CLI help.
529
+ -v, --verbose
530
+
531
+ DESCRIPTION
532
+ Removes a plugin from the CLI.
533
+
534
+ ALIASES
535
+ $ tray-cdk plugins unlink
536
+ $ tray-cdk plugins remove
537
+
538
+ EXAMPLES
539
+ $ tray-cdk plugins uninstall myplugin
540
+ ```
541
+
542
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/uninstall.ts)_
543
+
544
+ ## `tray-cdk plugins unlink [PLUGIN]`
545
+
546
+ Removes a plugin from the CLI.
547
+
548
+ ```
549
+ USAGE
550
+ $ tray-cdk plugins unlink [PLUGIN] [-h] [-v]
551
+
552
+ ARGUMENTS
553
+ PLUGIN plugin to uninstall
554
+
555
+ FLAGS
556
+ -h, --help Show CLI help.
557
+ -v, --verbose
558
+
559
+ DESCRIPTION
560
+ Removes a plugin from the CLI.
561
+
562
+ ALIASES
563
+ $ tray-cdk plugins unlink
564
+ $ tray-cdk plugins remove
565
+
566
+ EXAMPLES
567
+ $ tray-cdk plugins unlink myplugin
568
+ ```
569
+
570
+ ## `tray-cdk plugins update`
571
+
572
+ Update installed plugins.
573
+
574
+ ```
575
+ USAGE
576
+ $ tray-cdk plugins update [-h] [-v]
577
+
578
+ FLAGS
579
+ -h, --help Show CLI help.
580
+ -v, --verbose
581
+
582
+ DESCRIPTION
583
+ Update installed plugins.
584
+ ```
585
+
586
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.0.11/src/commands/plugins/update.ts)_
587
+
289
588
  ## `tray-cdk version`
290
589
 
291
590
  ```
@@ -65,10 +65,10 @@ class Create extends core_1.Command {
65
65
  if (response.isSuccess) {
66
66
  const { id } = response.value;
67
67
  if (response.value.repeatDeployment === true) {
68
- core_1.ux.action.stop((0, colorizeString_1.warning)(`Connector ${connectorName} - ${connectorVersion} deployment is already in progress. Deployment ID: ${id}. Please check for the status using 'tray-cdk deployment get' command.`));
68
+ core_1.ux.action.stop((0, colorizeString_1.warning)(`Connector ${connectorName} - ${connectorVersion} deployment is already in progress. Deployment ID: ${id}. Run "tray-cdk deployment get" to check the status.`));
69
69
  }
70
70
  else {
71
- core_1.ux.action.stop((0, colorizeString_1.success)('Deployment created! The deployment may take a few minutes to complete. Use `tray-cdk deployment get` to check the status.'));
71
+ core_1.ux.action.stop((0, colorizeString_1.success)(`Deployment created! The deployment may take a few minutes to complete. Run "tray-cdk deployment get" to check the status.`));
72
72
  this.log(`Connector ${connectorName} - ${connectorVersion} deployment is in progress. Deployment ID: ${id}.`);
73
73
  }
74
74
  }
@@ -61,7 +61,7 @@ describe('Create', () => {
61
61
  expect(test_1.default.run).toHaveBeenCalledWith([]);
62
62
  expect(build_1.default.run).toHaveBeenCalledWith([]);
63
63
  expect(startSpy).toHaveBeenCalledWith('Creating Connector Deployment');
64
- expect(stopSpy).toHaveBeenCalledWith(expect.stringContaining('Deployment created! The deployment may take a few minutes to complete. Use `tray-cdk deployment get` to check the status.'));
64
+ expect(stopSpy).toHaveBeenCalledWith(expect.stringContaining('Deployment created! The deployment may take a few minutes to complete. Run "tray-cdk deployment get" to check the status.'));
65
65
  expect(stdout_stderr_1.stdout.output).toEqual(expect.stringContaining('Connector connectorName - 1.0 deployment is in progress. Deployment ID: some-id.'));
66
66
  });
67
67
  it('should inform user of repeatDeployment when deployment is already in progress', async () => {
@@ -74,7 +74,7 @@ describe('Create', () => {
74
74
  expect(test_1.default.run).toHaveBeenCalledWith([]);
75
75
  expect(build_1.default.run).toHaveBeenCalledWith([]);
76
76
  expect(startSpy).toHaveBeenCalledWith('Creating Connector Deployment');
77
- expect(stopSpy).toHaveBeenCalledWith(expect.stringContaining(`Connector connectorName - 1.0 deployment is already in progress. Deployment ID: some-id. Please check for the status using 'tray-cdk deployment get' command.`));
77
+ expect(stopSpy).toHaveBeenCalledWith(expect.stringContaining(`Connector connectorName - 1.0 deployment is already in progress. Deployment ID: some-id. Run "tray-cdk deployment get" to check the status.`));
78
78
  });
79
79
  it('should error when the deployment fails', async () => {
80
80
  success = false;
@@ -343,5 +343,5 @@
343
343
  ]
344
344
  }
345
345
  },
346
- "version": "4.6.0"
346
+ "version": "4.8.0"
347
347
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-cli",
3
- "version": "4.6.0",
3
+ "version": "4.8.0",
4
4
  "description": "A CLI for connector development",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js"
@@ -16,18 +16,18 @@
16
16
  "dependencies": {
17
17
  "@oclif/core": "3.18.1",
18
18
  "@oclif/plugin-autocomplete": "3.0.5",
19
- "@oclif/plugin-help": "6.0.12",
19
+ "@oclif/plugin-help": "6.0.21",
20
+ "@oclif/plugin-plugins": "^5",
20
21
  "@oclif/plugin-version": "2.0.11",
21
22
  "@oclif/test": "3.1.12",
22
- "@trayio/axios": "4.6.0",
23
- "@trayio/cdk-build": "4.6.0",
24
- "@trayio/commons": "4.6.0",
25
- "@trayio/generator": "4.6.0",
26
- "@trayio/tray-client": "4.6.0",
27
- "@trayio/tray-openapi": "4.6.0",
28
- "@types/inquirer": "8.2.6",
23
+ "@trayio/axios": "4.8.0",
24
+ "@trayio/cdk-build": "4.8.0",
25
+ "@trayio/commons": "4.8.0",
26
+ "@trayio/generator": "4.8.0",
27
+ "@trayio/tray-client": "4.8.0",
28
+ "@trayio/tray-openapi": "4.8.0",
29
29
  "chalk": "4.1.2",
30
- "inquirer": "8.2.5"
30
+ "inquirer": "8.2.6"
31
31
  },
32
32
  "typesVersions": {
33
33
  "*": {
@@ -53,6 +53,7 @@
53
53
  "plugins": [
54
54
  "@oclif/plugin-help",
55
55
  "@oclif/plugin-autocomplete",
56
+ "@oclif/plugin-plugins",
56
57
  "@oclif/plugin-version"
57
58
  ],
58
59
  "additionalHelpFlags": [
@@ -76,5 +77,9 @@
76
77
  "scripts": {
77
78
  "oclif:clean": "rm -f oclif.manifest.json",
78
79
  "postcompile": "oclif manifest && oclif readme"
80
+ },
81
+ "devDependencies": {
82
+ "@types/inquirer": "8.2.6",
83
+ "oclif": "*"
79
84
  }
80
85
  }