@asyncapi/cli 1.5.17 → 1.6.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.
Files changed (2) hide show
  1. package/oclif.manifest.json +805 -545
  2. package/package.json +2 -2
@@ -1,14 +1,9 @@
1
1
  {
2
- "version": "1.5.17",
3
2
  "commands": {
4
3
  "bundle": {
5
- "id": "bundle",
6
- "description": "bundle one or multiple asyncapi documents and their references together.",
7
- "strict": false,
8
- "pluginName": "@asyncapi/cli",
9
- "pluginAlias": "@asyncapi/cli",
10
- "pluginType": "core",
11
4
  "aliases": [],
5
+ "args": {},
6
+ "description": "bundle one or multiple asyncapi documents and their references together.",
12
7
  "examples": [
13
8
  "asyncapi bundle ./asyncapi.yaml > final-asyncapi.yaml",
14
9
  "asyncapi bundle ./asyncapi.yaml --output final-asyncapi.yaml",
@@ -17,97 +12,129 @@
17
12
  ],
18
13
  "flags": {
19
14
  "help": {
20
- "name": "help",
21
- "type": "boolean",
22
15
  "char": "h",
23
16
  "description": "Show CLI help.",
24
- "allowNo": false
17
+ "name": "help",
18
+ "allowNo": false,
19
+ "type": "boolean"
25
20
  },
26
21
  "output": {
27
- "name": "output",
28
- "type": "option",
29
22
  "char": "o",
30
23
  "description": "The output file name. Omitting this flag the result will be printed in the console.",
31
- "multiple": false
24
+ "name": "output",
25
+ "hasDynamicHelp": false,
26
+ "multiple": false,
27
+ "type": "option"
32
28
  },
33
29
  "reference-into-components": {
34
- "name": "reference-into-components",
35
- "type": "boolean",
36
30
  "char": "r",
37
31
  "description": "Bundle the message $refs into components object.",
38
- "allowNo": false
32
+ "name": "reference-into-components",
33
+ "allowNo": false,
34
+ "type": "boolean"
39
35
  },
40
36
  "base": {
41
- "name": "base",
42
- "type": "option",
43
37
  "char": "b",
44
38
  "description": "Path to the file which will act as a base. This is required when some properties are to needed to be overwritten.",
45
- "multiple": false
39
+ "name": "base",
40
+ "hasDynamicHelp": false,
41
+ "multiple": false,
42
+ "type": "option"
46
43
  }
47
44
  },
48
- "args": {}
49
- },
50
- "convert": {
51
- "id": "convert",
52
- "description": "Convert asyncapi documents older to newer versions",
53
- "strict": true,
54
- "pluginName": "@asyncapi/cli",
45
+ "hasDynamicHelp": false,
46
+ "hiddenAliases": [],
47
+ "id": "bundle",
55
48
  "pluginAlias": "@asyncapi/cli",
49
+ "pluginName": "@asyncapi/cli",
56
50
  "pluginType": "core",
51
+ "strict": false,
52
+ "isESM": false,
53
+ "relativePath": [
54
+ "lib",
55
+ "commands",
56
+ "bundle.js"
57
+ ]
58
+ },
59
+ "convert": {
57
60
  "aliases": [],
61
+ "args": {
62
+ "spec-file": {
63
+ "description": "spec path, url, or context-name",
64
+ "name": "spec-file",
65
+ "required": false
66
+ }
67
+ },
68
+ "description": "Convert asyncapi documents older to newer versions",
58
69
  "flags": {
59
70
  "help": {
60
- "name": "help",
61
- "type": "boolean",
62
71
  "char": "h",
63
72
  "description": "Show CLI help.",
64
- "allowNo": false
73
+ "name": "help",
74
+ "allowNo": false,
75
+ "type": "boolean"
65
76
  },
66
77
  "output": {
67
- "name": "output",
68
- "type": "option",
69
78
  "char": "o",
70
79
  "description": "path to the file where the result is saved",
71
- "multiple": false
80
+ "name": "output",
81
+ "hasDynamicHelp": false,
82
+ "multiple": false,
83
+ "type": "option"
72
84
  },
73
85
  "target-version": {
74
- "name": "target-version",
75
- "type": "option",
76
86
  "char": "t",
77
87
  "description": "asyncapi version to convert to",
88
+ "name": "target-version",
89
+ "default": "3.0.0",
90
+ "hasDynamicHelp": false,
78
91
  "multiple": false,
79
- "default": "3.0.0"
92
+ "type": "option"
80
93
  }
81
94
  },
82
- "args": {
83
- "spec-file": {
84
- "name": "spec-file",
85
- "description": "spec path, url, or context-name",
86
- "required": false
87
- }
88
- }
89
- },
90
- "diff": {
91
- "id": "diff",
92
- "description": "Find diff between two asyncapi files",
93
- "strict": true,
94
- "pluginName": "@asyncapi/cli",
95
+ "hasDynamicHelp": false,
96
+ "hiddenAliases": [],
97
+ "id": "convert",
95
98
  "pluginAlias": "@asyncapi/cli",
99
+ "pluginName": "@asyncapi/cli",
96
100
  "pluginType": "core",
101
+ "strict": true,
102
+ "isESM": false,
103
+ "relativePath": [
104
+ "lib",
105
+ "commands",
106
+ "convert.js"
107
+ ]
108
+ },
109
+ "diff": {
97
110
  "aliases": [],
111
+ "args": {
112
+ "old": {
113
+ "description": "old spec path, URL or context-name",
114
+ "name": "old",
115
+ "required": true
116
+ },
117
+ "new": {
118
+ "description": "new spec path, URL or context-name",
119
+ "name": "new",
120
+ "required": true
121
+ }
122
+ },
123
+ "description": "Find diff between two asyncapi files",
98
124
  "flags": {
99
125
  "help": {
100
- "name": "help",
101
- "type": "boolean",
102
126
  "char": "h",
103
127
  "description": "Show CLI help.",
104
- "allowNo": false
128
+ "name": "help",
129
+ "allowNo": false,
130
+ "type": "boolean"
105
131
  },
106
132
  "format": {
107
- "name": "format",
108
- "type": "option",
109
133
  "char": "f",
110
134
  "description": "format of the output",
135
+ "name": "format",
136
+ "default": "yaml",
137
+ "hasDynamicHelp": false,
111
138
  "multiple": false,
112
139
  "options": [
113
140
  "json",
@@ -115,13 +142,14 @@
115
142
  "yml",
116
143
  "md"
117
144
  ],
118
- "default": "yaml"
145
+ "type": "option"
119
146
  },
120
147
  "type": {
121
- "name": "type",
122
- "type": "option",
123
148
  "char": "t",
124
149
  "description": "type of the output",
150
+ "name": "type",
151
+ "default": "all",
152
+ "hasDynamicHelp": false,
125
153
  "multiple": false,
126
154
  "options": [
127
155
  "breaking",
@@ -129,49 +157,52 @@
129
157
  "unclassified",
130
158
  "all"
131
159
  ],
132
- "default": "all"
160
+ "type": "option"
133
161
  },
134
162
  "markdownSubtype": {
135
- "name": "markdownSubtype",
136
- "type": "option",
137
163
  "description": "the format of changes made to AsyncAPI document. It works only when diff is generated using md type. For example, when you specify subtype as json, then diff information in markdown is dumped as json structure.",
164
+ "name": "markdownSubtype",
165
+ "hasDynamicHelp": false,
138
166
  "multiple": false,
139
167
  "options": [
140
168
  "json",
141
169
  "yaml",
142
170
  "yml"
143
- ]
171
+ ],
172
+ "type": "option"
144
173
  },
145
174
  "overrides": {
146
- "name": "overrides",
147
- "type": "option",
148
175
  "char": "o",
149
176
  "description": "path to JSON file containing the override properties",
150
- "multiple": false
177
+ "name": "overrides",
178
+ "hasDynamicHelp": false,
179
+ "multiple": false,
180
+ "type": "option"
151
181
  },
152
182
  "no-error": {
153
- "name": "no-error",
154
- "type": "boolean",
155
183
  "description": "don't show error on breaking changes",
156
- "allowNo": false
184
+ "name": "no-error",
185
+ "allowNo": false,
186
+ "type": "boolean"
157
187
  },
158
188
  "watch": {
159
- "name": "watch",
160
- "type": "boolean",
161
189
  "char": "w",
162
190
  "description": "Enable watch mode",
163
- "allowNo": false
191
+ "name": "watch",
192
+ "allowNo": false,
193
+ "type": "boolean"
164
194
  },
165
195
  "log-diagnostics": {
166
- "name": "log-diagnostics",
167
- "type": "boolean",
168
196
  "description": "log validation diagnostics or not",
169
- "allowNo": true
197
+ "name": "log-diagnostics",
198
+ "allowNo": true,
199
+ "type": "boolean"
170
200
  },
171
201
  "diagnostics-format": {
172
- "name": "diagnostics-format",
173
- "type": "option",
174
202
  "description": "format to use for validation diagnostics",
203
+ "name": "diagnostics-format",
204
+ "default": "stylish",
205
+ "hasDynamicHelp": false,
175
206
  "helpValue": "(json|stylish|junit|html|text|teamcity|pretty)",
176
207
  "multiple": false,
177
208
  "options": [
@@ -183,12 +214,13 @@
183
214
  "teamcity",
184
215
  "pretty"
185
216
  ],
186
- "default": "stylish"
217
+ "type": "option"
187
218
  },
188
219
  "fail-severity": {
189
- "name": "fail-severity",
190
- "type": "option",
191
220
  "description": "diagnostics of this level or above will trigger a failure exit code",
221
+ "name": "fail-severity",
222
+ "default": "error",
223
+ "hasDynamicHelp": false,
192
224
  "helpValue": "(error|warn|info|hint)",
193
225
  "multiple": false,
194
226
  "options": [
@@ -197,30 +229,33 @@
197
229
  "info",
198
230
  "hint"
199
231
  ],
200
- "default": "error"
232
+ "type": "option"
201
233
  }
202
234
  },
203
- "args": {
204
- "old": {
205
- "name": "old",
206
- "description": "old spec path, URL or context-name",
207
- "required": true
208
- },
209
- "new": {
210
- "name": "new",
211
- "description": "new spec path, URL or context-name",
212
- "required": true
213
- }
214
- }
215
- },
216
- "optimize": {
217
- "id": "optimize",
218
- "description": "optimize asyncapi specification file",
219
- "strict": true,
220
- "pluginName": "@asyncapi/cli",
235
+ "hasDynamicHelp": false,
236
+ "hiddenAliases": [],
237
+ "id": "diff",
221
238
  "pluginAlias": "@asyncapi/cli",
239
+ "pluginName": "@asyncapi/cli",
222
240
  "pluginType": "core",
241
+ "strict": true,
242
+ "isESM": false,
243
+ "relativePath": [
244
+ "lib",
245
+ "commands",
246
+ "diff.js"
247
+ ]
248
+ },
249
+ "optimize": {
223
250
  "aliases": [],
251
+ "args": {
252
+ "spec-file": {
253
+ "description": "spec path, url, or context-name",
254
+ "name": "spec-file",
255
+ "required": false
256
+ }
257
+ },
258
+ "description": "optimize asyncapi specification file",
224
259
  "examples": [
225
260
  "asyncapi optimize ./asyncapi.yaml",
226
261
  "asyncapi optimize ./asyncapi.yaml --no-tty",
@@ -229,90 +264,101 @@
229
264
  ],
230
265
  "flags": {
231
266
  "help": {
232
- "name": "help",
233
- "type": "boolean",
234
267
  "char": "h",
235
268
  "description": "Show CLI help.",
236
- "allowNo": false
269
+ "name": "help",
270
+ "allowNo": false,
271
+ "type": "boolean"
237
272
  },
238
273
  "optimization": {
239
- "name": "optimization",
240
- "type": "option",
241
274
  "char": "p",
242
275
  "description": "select the type of optimizations that you want to apply.",
243
- "multiple": true,
244
- "options": [
276
+ "name": "optimization",
277
+ "default": [
245
278
  "remove-components",
246
279
  "reuse-components",
247
280
  "move-to-components"
248
281
  ],
249
- "default": [
282
+ "hasDynamicHelp": false,
283
+ "multiple": true,
284
+ "options": [
250
285
  "remove-components",
251
286
  "reuse-components",
252
287
  "move-to-components"
253
- ]
288
+ ],
289
+ "type": "option"
254
290
  },
255
291
  "output": {
256
- "name": "output",
257
- "type": "option",
258
292
  "char": "o",
259
293
  "description": "select where you want the output.",
294
+ "name": "output",
295
+ "default": "terminal",
296
+ "hasDynamicHelp": false,
260
297
  "multiple": false,
261
298
  "options": [
262
299
  "terminal",
263
300
  "new-file",
264
301
  "overwrite"
265
302
  ],
266
- "default": "terminal"
303
+ "type": "option"
267
304
  },
268
305
  "no-tty": {
269
- "name": "no-tty",
270
- "type": "boolean",
271
306
  "description": "do not use an interactive terminal",
272
- "allowNo": false
307
+ "name": "no-tty",
308
+ "allowNo": false,
309
+ "type": "boolean"
273
310
  }
274
311
  },
312
+ "hasDynamicHelp": false,
313
+ "hiddenAliases": [],
314
+ "id": "optimize",
315
+ "pluginAlias": "@asyncapi/cli",
316
+ "pluginName": "@asyncapi/cli",
317
+ "pluginType": "core",
318
+ "strict": true,
319
+ "isESM": false,
320
+ "relativePath": [
321
+ "lib",
322
+ "commands",
323
+ "optimize.js"
324
+ ]
325
+ },
326
+ "validate": {
327
+ "aliases": [],
275
328
  "args": {
276
329
  "spec-file": {
277
- "name": "spec-file",
278
330
  "description": "spec path, url, or context-name",
331
+ "name": "spec-file",
279
332
  "required": false
280
333
  }
281
- }
282
- },
283
- "validate": {
284
- "id": "validate",
334
+ },
285
335
  "description": "validate asyncapi file",
286
- "strict": true,
287
- "pluginName": "@asyncapi/cli",
288
- "pluginAlias": "@asyncapi/cli",
289
- "pluginType": "core",
290
- "aliases": [],
291
336
  "flags": {
292
337
  "help": {
293
- "name": "help",
294
- "type": "boolean",
295
338
  "char": "h",
296
339
  "description": "Show CLI help.",
297
- "allowNo": false
340
+ "name": "help",
341
+ "allowNo": false,
342
+ "type": "boolean"
298
343
  },
299
344
  "watch": {
300
- "name": "watch",
301
- "type": "boolean",
302
345
  "char": "w",
303
346
  "description": "Enable watch mode",
304
- "allowNo": false
347
+ "name": "watch",
348
+ "allowNo": false,
349
+ "type": "boolean"
305
350
  },
306
351
  "log-diagnostics": {
307
- "name": "log-diagnostics",
308
- "type": "boolean",
309
352
  "description": "log validation diagnostics or not",
310
- "allowNo": true
353
+ "name": "log-diagnostics",
354
+ "allowNo": true,
355
+ "type": "boolean"
311
356
  },
312
357
  "diagnostics-format": {
313
- "name": "diagnostics-format",
314
- "type": "option",
315
358
  "description": "format to use for validation diagnostics",
359
+ "name": "diagnostics-format",
360
+ "default": "stylish",
361
+ "hasDynamicHelp": false,
316
362
  "helpValue": "(json|stylish|junit|html|text|teamcity|pretty)",
317
363
  "multiple": false,
318
364
  "options": [
@@ -324,12 +370,13 @@
324
370
  "teamcity",
325
371
  "pretty"
326
372
  ],
327
- "default": "stylish"
373
+ "type": "option"
328
374
  },
329
375
  "fail-severity": {
330
- "name": "fail-severity",
331
- "type": "option",
332
376
  "description": "diagnostics of this level or above will trigger a failure exit code",
377
+ "name": "fail-severity",
378
+ "default": "error",
379
+ "hasDynamicHelp": false,
333
380
  "helpValue": "(error|warn|info|hint)",
334
381
  "multiple": false,
335
382
  "options": [
@@ -338,343 +385,419 @@
338
385
  "info",
339
386
  "hint"
340
387
  ],
341
- "default": "error"
388
+ "type": "option"
342
389
  }
343
390
  },
344
- "args": {
345
- "spec-file": {
346
- "name": "spec-file",
347
- "description": "spec path, url, or context-name",
348
- "required": false
349
- }
350
- }
391
+ "hasDynamicHelp": false,
392
+ "hiddenAliases": [],
393
+ "id": "validate",
394
+ "pluginAlias": "@asyncapi/cli",
395
+ "pluginName": "@asyncapi/cli",
396
+ "pluginType": "core",
397
+ "strict": true,
398
+ "isESM": false,
399
+ "relativePath": [
400
+ "lib",
401
+ "commands",
402
+ "validate.js"
403
+ ]
351
404
  },
352
405
  "config": {
353
- "id": "config",
406
+ "aliases": [],
407
+ "args": {},
354
408
  "description": "CLI config settings",
355
- "strict": true,
356
- "pluginName": "@asyncapi/cli",
409
+ "flags": {},
410
+ "hasDynamicHelp": false,
411
+ "hiddenAliases": [],
412
+ "id": "config",
357
413
  "pluginAlias": "@asyncapi/cli",
414
+ "pluginName": "@asyncapi/cli",
358
415
  "pluginType": "core",
359
- "aliases": [],
360
- "flags": {},
361
- "args": {}
416
+ "strict": true,
417
+ "isESM": false,
418
+ "relativePath": [
419
+ "lib",
420
+ "commands",
421
+ "config",
422
+ "index.js"
423
+ ]
362
424
  },
363
425
  "config:versions": {
364
- "id": "config:versions",
365
- "description": "Show versions of AsyncAPI tools used",
366
- "strict": true,
367
- "pluginName": "@asyncapi/cli",
368
- "pluginAlias": "@asyncapi/cli",
369
- "pluginType": "core",
370
426
  "aliases": [],
427
+ "args": {},
428
+ "description": "Show versions of AsyncAPI tools used",
371
429
  "flags": {
372
430
  "help": {
373
- "name": "help",
374
- "type": "boolean",
375
431
  "char": "h",
376
432
  "description": "Show CLI help.",
377
- "allowNo": false
433
+ "name": "help",
434
+ "allowNo": false,
435
+ "type": "boolean"
378
436
  }
379
437
  },
380
- "args": {}
381
- },
382
- "generate:fromTemplate": {
383
- "id": "generate:fromTemplate",
384
- "description": "Generates whatever you want using templates compatible with AsyncAPI Generator.",
385
- "strict": true,
386
- "pluginName": "@asyncapi/cli",
438
+ "hasDynamicHelp": false,
439
+ "hiddenAliases": [],
440
+ "id": "config:versions",
387
441
  "pluginAlias": "@asyncapi/cli",
442
+ "pluginName": "@asyncapi/cli",
388
443
  "pluginType": "core",
444
+ "strict": true,
445
+ "isESM": false,
446
+ "relativePath": [
447
+ "lib",
448
+ "commands",
449
+ "config",
450
+ "versions.js"
451
+ ]
452
+ },
453
+ "generate:fromTemplate": {
389
454
  "aliases": [],
455
+ "args": {
456
+ "asyncapi": {
457
+ "description": "- Local path, url or context-name pointing to AsyncAPI file",
458
+ "name": "asyncapi",
459
+ "required": true
460
+ },
461
+ "template": {
462
+ "description": "- Name of the generator template like for example @asyncapi/html-template or https://github.com/asyncapi/html-template",
463
+ "name": "template",
464
+ "required": true
465
+ }
466
+ },
467
+ "description": "Generates whatever you want using templates compatible with AsyncAPI Generator.",
390
468
  "examples": [
391
469
  "asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template --param version=1.0.0 singleFile=true --output ./docs --force-write"
392
470
  ],
393
471
  "flags": {
394
472
  "help": {
395
- "name": "help",
396
- "type": "boolean",
397
473
  "char": "h",
398
474
  "description": "Show CLI help.",
399
- "allowNo": false
475
+ "name": "help",
476
+ "allowNo": false,
477
+ "type": "boolean"
400
478
  },
401
479
  "disable-hook": {
402
- "name": "disable-hook",
403
- "type": "option",
404
480
  "char": "d",
405
481
  "description": "Disable a specific hook type or hooks from a given hook type",
406
- "multiple": true
482
+ "name": "disable-hook",
483
+ "hasDynamicHelp": false,
484
+ "multiple": true,
485
+ "type": "option"
407
486
  },
408
487
  "install": {
409
- "name": "install",
410
- "type": "boolean",
411
488
  "char": "i",
412
489
  "description": "Installs the template and its dependencies (defaults to false)",
413
- "allowNo": false
490
+ "name": "install",
491
+ "allowNo": false,
492
+ "type": "boolean"
414
493
  },
415
494
  "debug": {
416
- "name": "debug",
417
- "type": "boolean",
418
495
  "description": "Enable more specific errors in the console",
419
- "allowNo": false
496
+ "name": "debug",
497
+ "allowNo": false,
498
+ "type": "boolean"
420
499
  },
421
500
  "no-overwrite": {
422
- "name": "no-overwrite",
423
- "type": "option",
424
501
  "char": "n",
425
502
  "description": "Glob or path of the file(s) to skip when regenerating",
426
- "multiple": true
503
+ "name": "no-overwrite",
504
+ "hasDynamicHelp": false,
505
+ "multiple": true,
506
+ "type": "option"
427
507
  },
428
508
  "output": {
429
- "name": "output",
430
- "type": "option",
431
509
  "char": "o",
432
510
  "description": "Directory where to put the generated files (defaults to current directory)",
433
- "multiple": false
511
+ "name": "output",
512
+ "hasDynamicHelp": false,
513
+ "multiple": false,
514
+ "type": "option"
434
515
  },
435
516
  "force-write": {
436
- "name": "force-write",
437
- "type": "boolean",
438
517
  "description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
439
- "allowNo": false
518
+ "name": "force-write",
519
+ "allowNo": false,
520
+ "type": "boolean"
440
521
  },
441
522
  "watch": {
442
- "name": "watch",
443
- "type": "boolean",
444
523
  "char": "w",
445
524
  "description": "Watches the template directory and the AsyncAPI document, and re-generate the files when changes occur. Ignores the output directory.",
446
- "allowNo": false
525
+ "name": "watch",
526
+ "allowNo": false,
527
+ "type": "boolean"
447
528
  },
448
529
  "param": {
449
- "name": "param",
450
- "type": "option",
451
530
  "char": "p",
452
531
  "description": "Additional param to pass to templates",
453
- "multiple": true
532
+ "name": "param",
533
+ "hasDynamicHelp": false,
534
+ "multiple": true,
535
+ "type": "option"
454
536
  },
455
537
  "map-base-url": {
456
- "name": "map-base-url",
457
- "type": "option",
458
538
  "description": "Maps all schema references from base url to local folder",
459
- "multiple": false
539
+ "name": "map-base-url",
540
+ "hasDynamicHelp": false,
541
+ "multiple": false,
542
+ "type": "option"
460
543
  }
461
544
  },
462
- "args": {
463
- "asyncapi": {
464
- "name": "asyncapi",
465
- "description": "- Local path, url or context-name pointing to AsyncAPI file",
466
- "required": true
467
- },
468
- "template": {
469
- "name": "template",
470
- "description": "- Name of the generator template like for example @asyncapi/html-template or https://github.com/asyncapi/html-template",
471
- "required": true
472
- }
473
- }
545
+ "hasDynamicHelp": false,
546
+ "hiddenAliases": [],
547
+ "id": "generate:fromTemplate",
548
+ "pluginAlias": "@asyncapi/cli",
549
+ "pluginName": "@asyncapi/cli",
550
+ "pluginType": "core",
551
+ "strict": true,
552
+ "isESM": false,
553
+ "relativePath": [
554
+ "lib",
555
+ "commands",
556
+ "generate",
557
+ "fromTemplate.js"
558
+ ]
474
559
  },
475
560
  "generate": {
476
- "id": "generate",
561
+ "aliases": [],
562
+ "args": {},
477
563
  "description": "Generate typed models or other things like clients, applications or docs using AsyncAPI Generator templates.",
478
- "strict": true,
479
- "pluginName": "@asyncapi/cli",
564
+ "flags": {},
565
+ "hasDynamicHelp": false,
566
+ "hiddenAliases": [],
567
+ "id": "generate",
480
568
  "pluginAlias": "@asyncapi/cli",
569
+ "pluginName": "@asyncapi/cli",
481
570
  "pluginType": "core",
482
- "aliases": [],
483
- "flags": {},
484
- "args": {}
571
+ "strict": true,
572
+ "isESM": false,
573
+ "relativePath": [
574
+ "lib",
575
+ "commands",
576
+ "generate",
577
+ "index.js"
578
+ ]
485
579
  },
486
580
  "generate:models": {
487
- "id": "generate:models",
488
- "description": "Generates typed models",
489
- "strict": true,
490
- "pluginName": "@asyncapi/cli",
491
- "pluginAlias": "@asyncapi/cli",
492
- "pluginType": "core",
493
581
  "aliases": [],
582
+ "args": {
583
+ "language": {
584
+ "description": "The language you want the typed models generated for.",
585
+ "name": "language",
586
+ "options": [
587
+ "typescript",
588
+ "csharp",
589
+ "golang",
590
+ "java",
591
+ "javascript",
592
+ "dart",
593
+ "python",
594
+ "rust",
595
+ "kotlin",
596
+ "php",
597
+ "cplusplus"
598
+ ],
599
+ "required": true
600
+ },
601
+ "file": {
602
+ "description": "Path or URL to the AsyncAPI document, or context-name",
603
+ "name": "file",
604
+ "required": true
605
+ }
606
+ },
607
+ "description": "Generates typed models",
494
608
  "flags": {
495
609
  "help": {
496
- "name": "help",
497
- "type": "boolean",
498
610
  "char": "h",
499
611
  "description": "Show CLI help.",
500
- "allowNo": false
612
+ "name": "help",
613
+ "allowNo": false,
614
+ "type": "boolean"
501
615
  },
502
616
  "output": {
503
- "name": "output",
504
- "type": "option",
505
617
  "char": "o",
506
618
  "description": "The output directory where the models should be written to. Omitting this flag will write the models to `stdout`.",
619
+ "name": "output",
507
620
  "required": false,
508
- "multiple": false
621
+ "hasDynamicHelp": false,
622
+ "multiple": false,
623
+ "type": "option"
509
624
  },
510
625
  "tsModelType": {
511
- "name": "tsModelType",
512
- "type": "option",
513
626
  "description": "TypeScript specific, define which type of model needs to be generated.",
627
+ "name": "tsModelType",
514
628
  "required": false,
629
+ "default": "class",
630
+ "hasDynamicHelp": false,
515
631
  "multiple": false,
516
632
  "options": [
517
633
  "class",
518
634
  "interface"
519
635
  ],
520
- "default": "class"
636
+ "type": "option"
521
637
  },
522
638
  "tsEnumType": {
523
- "name": "tsEnumType",
524
- "type": "option",
525
639
  "description": "TypeScript specific, define which type of enums needs to be generated.",
640
+ "name": "tsEnumType",
526
641
  "required": false,
642
+ "default": "enum",
643
+ "hasDynamicHelp": false,
527
644
  "multiple": false,
528
645
  "options": [
529
646
  "enum",
530
647
  "union"
531
648
  ],
532
- "default": "enum"
649
+ "type": "option"
533
650
  },
534
651
  "tsModuleSystem": {
535
- "name": "tsModuleSystem",
536
- "type": "option",
537
652
  "description": "TypeScript specific, define the module system to be used.",
653
+ "name": "tsModuleSystem",
538
654
  "required": false,
655
+ "default": "ESM",
656
+ "hasDynamicHelp": false,
539
657
  "multiple": false,
540
658
  "options": [
541
659
  "ESM",
542
660
  "CJS"
543
661
  ],
544
- "default": "ESM"
662
+ "type": "option"
545
663
  },
546
664
  "tsIncludeComments": {
547
- "name": "tsIncludeComments",
548
- "type": "boolean",
549
665
  "description": "TypeScript specific, if enabled add comments while generating models.",
666
+ "name": "tsIncludeComments",
550
667
  "required": false,
551
- "allowNo": false
668
+ "allowNo": false,
669
+ "type": "boolean"
552
670
  },
553
671
  "tsExportType": {
554
- "name": "tsExportType",
555
- "type": "option",
556
672
  "description": "TypeScript specific, define which type of export needs to be generated.",
673
+ "name": "tsExportType",
557
674
  "required": false,
675
+ "default": "default",
676
+ "hasDynamicHelp": false,
558
677
  "multiple": false,
559
678
  "options": [
560
679
  "default",
561
680
  "named"
562
681
  ],
563
- "default": "default"
682
+ "type": "option"
564
683
  },
565
684
  "tsJsonBinPack": {
566
- "name": "tsJsonBinPack",
567
- "type": "boolean",
568
685
  "description": "TypeScript specific, define basic support for serializing to and from binary with jsonbinpack.",
686
+ "name": "tsJsonBinPack",
569
687
  "required": false,
570
- "allowNo": false
688
+ "allowNo": false,
689
+ "type": "boolean"
571
690
  },
572
691
  "tsMarshalling": {
573
- "name": "tsMarshalling",
574
- "type": "boolean",
575
692
  "description": "TypeScript specific, generate the models with marshalling functions.",
693
+ "name": "tsMarshalling",
576
694
  "required": false,
577
- "allowNo": false
695
+ "allowNo": false,
696
+ "type": "boolean"
578
697
  },
579
698
  "tsExampleInstance": {
580
- "name": "tsExampleInstance",
581
- "type": "boolean",
582
699
  "description": "Typescript specific, generate example of the model",
700
+ "name": "tsExampleInstance",
583
701
  "required": false,
584
- "allowNo": false
702
+ "allowNo": false,
703
+ "type": "boolean"
585
704
  },
586
705
  "packageName": {
587
- "name": "packageName",
588
- "type": "option",
589
706
  "description": "Go, Java and Kotlin specific, define the package to use for the generated models. This is required when language is `go`, `java` or `kotlin`.",
707
+ "name": "packageName",
590
708
  "required": false,
591
- "multiple": false
709
+ "hasDynamicHelp": false,
710
+ "multiple": false,
711
+ "type": "option"
592
712
  },
593
713
  "javaIncludeComments": {
594
- "name": "javaIncludeComments",
595
- "type": "boolean",
596
714
  "description": "Java specific, if enabled add comments while generating models.",
715
+ "name": "javaIncludeComments",
597
716
  "required": false,
598
- "allowNo": false
717
+ "allowNo": false,
718
+ "type": "boolean"
599
719
  },
600
720
  "javaJackson": {
601
- "name": "javaJackson",
602
- "type": "boolean",
603
721
  "description": "Java specific, generate the models with Jackson serialization support",
722
+ "name": "javaJackson",
604
723
  "required": false,
605
- "allowNo": false
724
+ "allowNo": false,
725
+ "type": "boolean"
606
726
  },
607
727
  "javaConstraints": {
608
- "name": "javaConstraints",
609
- "type": "boolean",
610
728
  "description": "Java specific, generate the models with constraints",
729
+ "name": "javaConstraints",
611
730
  "required": false,
612
- "allowNo": false
731
+ "allowNo": false,
732
+ "type": "boolean"
613
733
  },
614
734
  "namespace": {
615
- "name": "namespace",
616
- "type": "option",
617
735
  "description": "C#, C++ and PHP specific, define the namespace to use for the generated models. This is required when language is `csharp`,`c++` or `php`.",
736
+ "name": "namespace",
618
737
  "required": false,
619
- "multiple": false
738
+ "hasDynamicHelp": false,
739
+ "multiple": false,
740
+ "type": "option"
620
741
  },
621
742
  "csharpAutoImplement": {
622
- "name": "csharpAutoImplement",
623
- "type": "boolean",
624
743
  "description": "C# specific, define whether to generate auto-implemented properties or not.",
744
+ "name": "csharpAutoImplement",
625
745
  "required": false,
626
- "allowNo": false
746
+ "allowNo": false,
747
+ "type": "boolean"
627
748
  },
628
749
  "csharpNewtonsoft": {
629
- "name": "csharpNewtonsoft",
630
- "type": "boolean",
631
750
  "description": "C# specific, generate the models with newtonsoft serialization support",
751
+ "name": "csharpNewtonsoft",
632
752
  "required": false,
633
- "allowNo": false
753
+ "allowNo": false,
754
+ "type": "boolean"
634
755
  },
635
756
  "csharpArrayType": {
636
- "name": "csharpArrayType",
637
- "type": "option",
638
757
  "description": "C# specific, define which type of array needs to be generated.",
758
+ "name": "csharpArrayType",
639
759
  "required": false,
760
+ "default": "Array",
761
+ "hasDynamicHelp": false,
640
762
  "multiple": false,
641
763
  "options": [
642
764
  "Array",
643
765
  "List"
644
766
  ],
645
- "default": "Array"
767
+ "type": "option"
646
768
  },
647
769
  "csharpHashcode": {
648
- "name": "csharpHashcode",
649
- "type": "boolean",
650
770
  "description": "C# specific, generate the models with the GetHashCode method overwritten",
771
+ "name": "csharpHashcode",
651
772
  "required": false,
652
- "allowNo": false
773
+ "allowNo": false,
774
+ "type": "boolean"
653
775
  },
654
776
  "csharpEqual": {
655
- "name": "csharpEqual",
656
- "type": "boolean",
657
777
  "description": "C# specific, generate the models with the Equal method overwritten",
778
+ "name": "csharpEqual",
658
779
  "required": false,
659
- "allowNo": false
780
+ "allowNo": false,
781
+ "type": "boolean"
660
782
  },
661
783
  "csharpSystemJson": {
662
- "name": "csharpSystemJson",
663
- "type": "boolean",
664
784
  "description": "C# specific, generate the models with System.Text.Json serialization support",
785
+ "name": "csharpSystemJson",
665
786
  "required": false,
666
- "allowNo": false
787
+ "allowNo": false,
788
+ "type": "boolean"
667
789
  },
668
790
  "log-diagnostics": {
669
- "name": "log-diagnostics",
670
- "type": "boolean",
671
791
  "description": "log validation diagnostics or not",
672
- "allowNo": true
792
+ "name": "log-diagnostics",
793
+ "allowNo": true,
794
+ "type": "boolean"
673
795
  },
674
796
  "diagnostics-format": {
675
- "name": "diagnostics-format",
676
- "type": "option",
677
797
  "description": "format to use for validation diagnostics",
798
+ "name": "diagnostics-format",
799
+ "default": "stylish",
800
+ "hasDynamicHelp": false,
678
801
  "helpValue": "(json|stylish|junit|html|text|teamcity|pretty)",
679
802
  "multiple": false,
680
803
  "options": [
@@ -686,12 +809,13 @@
686
809
  "teamcity",
687
810
  "pretty"
688
811
  ],
689
- "default": "stylish"
812
+ "type": "option"
690
813
  },
691
814
  "fail-severity": {
692
- "name": "fail-severity",
693
- "type": "option",
694
815
  "description": "diagnostics of this level or above will trigger a failure exit code",
816
+ "name": "fail-severity",
817
+ "default": "error",
818
+ "hasDynamicHelp": false,
695
819
  "helpValue": "(error|warn|info|hint)",
696
820
  "multiple": false,
697
821
  "options": [
@@ -700,481 +824,617 @@
700
824
  "info",
701
825
  "hint"
702
826
  ],
703
- "default": "error"
827
+ "type": "option"
704
828
  }
705
829
  },
706
- "args": {
707
- "language": {
708
- "name": "language",
709
- "description": "The language you want the typed models generated for.",
710
- "required": true,
711
- "options": [
712
- "typescript",
713
- "csharp",
714
- "golang",
715
- "java",
716
- "javascript",
717
- "dart",
718
- "python",
719
- "rust",
720
- "kotlin",
721
- "php",
722
- "cplusplus"
723
- ]
724
- },
725
- "file": {
726
- "name": "file",
727
- "description": "Path or URL to the AsyncAPI document, or context-name",
728
- "required": true
729
- }
730
- }
731
- },
732
- "new:file": {
733
- "id": "new:file",
734
- "description": "Creates a new asyncapi file",
735
- "strict": true,
736
- "pluginName": "@asyncapi/cli",
830
+ "hasDynamicHelp": false,
831
+ "hiddenAliases": [],
832
+ "id": "generate:models",
737
833
  "pluginAlias": "@asyncapi/cli",
834
+ "pluginName": "@asyncapi/cli",
738
835
  "pluginType": "core",
836
+ "strict": true,
837
+ "isESM": false,
838
+ "relativePath": [
839
+ "lib",
840
+ "commands",
841
+ "generate",
842
+ "models.js"
843
+ ]
844
+ },
845
+ "new:file": {
739
846
  "aliases": [],
847
+ "args": {},
848
+ "description": "Creates a new asyncapi file",
740
849
  "examples": [
741
850
  "asyncapi new\t - start creation of a file in interactive mode",
742
851
  "asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
743
852
  ],
744
853
  "flags": {
745
854
  "help": {
746
- "name": "help",
747
- "type": "boolean",
748
855
  "char": "h",
749
856
  "description": "Show CLI help.",
750
- "allowNo": false
857
+ "name": "help",
858
+ "allowNo": false,
859
+ "type": "boolean"
751
860
  },
752
861
  "file-name": {
753
- "name": "file-name",
754
- "type": "option",
755
862
  "char": "n",
756
863
  "description": "name of the file",
757
- "multiple": false
864
+ "name": "file-name",
865
+ "hasDynamicHelp": false,
866
+ "multiple": false,
867
+ "type": "option"
758
868
  },
759
869
  "example": {
760
- "name": "example",
761
- "type": "option",
762
870
  "char": "e",
763
871
  "description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
764
- "multiple": false
872
+ "name": "example",
873
+ "hasDynamicHelp": false,
874
+ "multiple": false,
875
+ "type": "option"
765
876
  },
766
877
  "studio": {
767
- "name": "studio",
768
- "type": "boolean",
769
878
  "char": "s",
770
879
  "description": "open in Studio",
771
- "allowNo": false
880
+ "name": "studio",
881
+ "allowNo": false,
882
+ "type": "boolean"
772
883
  },
773
884
  "port": {
774
- "name": "port",
775
- "type": "option",
776
885
  "char": "p",
777
886
  "description": "port in which to start Studio",
778
- "multiple": false
887
+ "name": "port",
888
+ "hasDynamicHelp": false,
889
+ "multiple": false,
890
+ "type": "option"
779
891
  },
780
892
  "no-tty": {
781
- "name": "no-tty",
782
- "type": "boolean",
783
893
  "description": "do not use an interactive terminal",
784
- "allowNo": false
894
+ "name": "no-tty",
895
+ "allowNo": false,
896
+ "type": "boolean"
785
897
  }
786
898
  },
787
- "args": {}
788
- },
789
- "new:glee": {
790
- "id": "new:glee",
791
- "description": "Creates a new Glee project",
792
- "strict": true,
793
- "pluginName": "@asyncapi/cli",
899
+ "hasDynamicHelp": false,
900
+ "hiddenAliases": [],
901
+ "id": "new:file",
794
902
  "pluginAlias": "@asyncapi/cli",
903
+ "pluginName": "@asyncapi/cli",
795
904
  "pluginType": "core",
905
+ "strict": true,
906
+ "isESM": false,
907
+ "relativePath": [
908
+ "lib",
909
+ "commands",
910
+ "new",
911
+ "file.js"
912
+ ]
913
+ },
914
+ "new:glee": {
796
915
  "aliases": [],
916
+ "args": {},
917
+ "description": "Creates a new Glee project",
797
918
  "flags": {
798
919
  "help": {
799
- "name": "help",
800
- "type": "boolean",
801
920
  "char": "h",
802
921
  "description": "Show CLI help.",
803
- "allowNo": false
922
+ "name": "help",
923
+ "allowNo": false,
924
+ "type": "boolean"
804
925
  },
805
926
  "name": {
806
- "name": "name",
807
- "type": "option",
808
927
  "char": "n",
809
928
  "description": "Name of the Project",
929
+ "name": "name",
930
+ "default": "project",
931
+ "hasDynamicHelp": false,
810
932
  "multiple": false,
811
- "default": "project"
933
+ "type": "option"
812
934
  },
813
935
  "template": {
814
- "name": "template",
815
- "type": "option",
816
936
  "char": "t",
817
937
  "description": "Name of the Template",
938
+ "name": "template",
939
+ "default": "default",
940
+ "hasDynamicHelp": false,
818
941
  "multiple": false,
819
- "default": "default"
942
+ "type": "option"
820
943
  },
821
944
  "file": {
822
- "name": "file",
823
- "type": "option",
824
945
  "char": "f",
825
946
  "description": "The path to the AsyncAPI file for generating a Glee project.",
826
- "multiple": false
947
+ "name": "file",
948
+ "hasDynamicHelp": false,
949
+ "multiple": false,
950
+ "type": "option"
827
951
  },
828
952
  "force-write": {
829
- "name": "force-write",
830
- "type": "boolean",
831
953
  "description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
832
- "allowNo": false
954
+ "name": "force-write",
955
+ "allowNo": false,
956
+ "type": "boolean"
833
957
  }
834
958
  },
835
- "args": {}
836
- },
837
- "new": {
838
- "id": "new",
839
- "description": "Creates a new asyncapi file",
840
- "strict": true,
841
- "pluginName": "@asyncapi/cli",
959
+ "hasDynamicHelp": false,
960
+ "hiddenAliases": [],
961
+ "id": "new:glee",
842
962
  "pluginAlias": "@asyncapi/cli",
963
+ "pluginName": "@asyncapi/cli",
843
964
  "pluginType": "core",
965
+ "strict": true,
966
+ "isESM": false,
967
+ "relativePath": [
968
+ "lib",
969
+ "commands",
970
+ "new",
971
+ "glee.js"
972
+ ]
973
+ },
974
+ "new": {
844
975
  "aliases": [],
976
+ "args": {},
977
+ "description": "Creates a new asyncapi file",
845
978
  "examples": [
846
979
  "asyncapi new\t - start creation of a file in interactive mode",
847
980
  "asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
848
981
  ],
849
982
  "flags": {
850
983
  "help": {
851
- "name": "help",
852
- "type": "boolean",
853
984
  "char": "h",
854
985
  "description": "Show CLI help.",
855
- "allowNo": false
986
+ "name": "help",
987
+ "allowNo": false,
988
+ "type": "boolean"
856
989
  },
857
990
  "file-name": {
858
- "name": "file-name",
859
- "type": "option",
860
991
  "char": "n",
861
992
  "description": "name of the file",
862
- "multiple": false
993
+ "name": "file-name",
994
+ "hasDynamicHelp": false,
995
+ "multiple": false,
996
+ "type": "option"
863
997
  },
864
998
  "example": {
865
- "name": "example",
866
- "type": "option",
867
999
  "char": "e",
868
1000
  "description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
869
- "multiple": false
1001
+ "name": "example",
1002
+ "hasDynamicHelp": false,
1003
+ "multiple": false,
1004
+ "type": "option"
870
1005
  },
871
1006
  "studio": {
872
- "name": "studio",
873
- "type": "boolean",
874
1007
  "char": "s",
875
1008
  "description": "open in Studio",
876
- "allowNo": false
1009
+ "name": "studio",
1010
+ "allowNo": false,
1011
+ "type": "boolean"
877
1012
  },
878
1013
  "port": {
879
- "name": "port",
880
- "type": "option",
881
1014
  "char": "p",
882
1015
  "description": "port in which to start Studio",
883
- "multiple": false
1016
+ "name": "port",
1017
+ "hasDynamicHelp": false,
1018
+ "multiple": false,
1019
+ "type": "option"
884
1020
  },
885
1021
  "no-tty": {
886
- "name": "no-tty",
887
- "type": "boolean",
888
1022
  "description": "do not use an interactive terminal",
889
- "allowNo": false
1023
+ "name": "no-tty",
1024
+ "allowNo": false,
1025
+ "type": "boolean"
890
1026
  }
891
1027
  },
892
- "args": {}
893
- },
894
- "new:project": {
895
- "id": "new:project",
896
- "description": "Creates a new Glee project",
897
- "strict": true,
898
- "pluginName": "@asyncapi/cli",
1028
+ "hasDynamicHelp": false,
1029
+ "hiddenAliases": [],
1030
+ "id": "new",
899
1031
  "pluginAlias": "@asyncapi/cli",
1032
+ "pluginName": "@asyncapi/cli",
900
1033
  "pluginType": "core",
1034
+ "isESM": false,
1035
+ "relativePath": [
1036
+ "lib",
1037
+ "commands",
1038
+ "new",
1039
+ "index.js"
1040
+ ]
1041
+ },
1042
+ "new:project": {
901
1043
  "aliases": [],
1044
+ "args": {},
1045
+ "description": "Creates a new Glee project",
902
1046
  "flags": {
903
1047
  "help": {
904
- "name": "help",
905
- "type": "boolean",
906
1048
  "char": "h",
907
1049
  "description": "Show CLI help.",
908
- "allowNo": false
1050
+ "name": "help",
1051
+ "allowNo": false,
1052
+ "type": "boolean"
909
1053
  },
910
1054
  "name": {
911
- "name": "name",
912
- "type": "option",
913
1055
  "char": "n",
914
1056
  "description": "Name of the Project",
1057
+ "name": "name",
1058
+ "default": "project",
1059
+ "hasDynamicHelp": false,
915
1060
  "multiple": false,
916
- "default": "project"
1061
+ "type": "option"
917
1062
  },
918
1063
  "template": {
919
- "name": "template",
920
- "type": "option",
921
1064
  "char": "t",
922
1065
  "description": "Name of the Template",
1066
+ "name": "template",
1067
+ "default": "default",
1068
+ "hasDynamicHelp": false,
923
1069
  "multiple": false,
924
- "default": "default"
1070
+ "type": "option"
925
1071
  },
926
1072
  "file": {
927
- "name": "file",
928
- "type": "option",
929
1073
  "char": "f",
930
1074
  "description": "The path to the AsyncAPI file for generating a Glee project.",
931
- "multiple": false
1075
+ "name": "file",
1076
+ "hasDynamicHelp": false,
1077
+ "multiple": false,
1078
+ "type": "option"
932
1079
  },
933
1080
  "force-write": {
934
- "name": "force-write",
935
- "type": "boolean",
936
1081
  "description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
937
- "allowNo": false
1082
+ "name": "force-write",
1083
+ "allowNo": false,
1084
+ "type": "boolean"
938
1085
  }
939
1086
  },
940
- "args": {}
1087
+ "hasDynamicHelp": false,
1088
+ "hiddenAliases": [],
1089
+ "id": "new:project",
1090
+ "pluginAlias": "@asyncapi/cli",
1091
+ "pluginName": "@asyncapi/cli",
1092
+ "pluginType": "core",
1093
+ "isESM": false,
1094
+ "relativePath": [
1095
+ "lib",
1096
+ "commands",
1097
+ "new",
1098
+ "project.js"
1099
+ ]
941
1100
  },
942
1101
  "start": {
943
- "id": "start",
1102
+ "aliases": [],
1103
+ "args": {},
944
1104
  "description": "Start asyncapi studio",
945
- "strict": true,
946
- "pluginName": "@asyncapi/cli",
1105
+ "flags": {},
1106
+ "hasDynamicHelp": false,
1107
+ "hiddenAliases": [],
1108
+ "id": "start",
947
1109
  "pluginAlias": "@asyncapi/cli",
1110
+ "pluginName": "@asyncapi/cli",
948
1111
  "pluginType": "core",
949
- "aliases": [],
950
- "flags": {},
951
- "args": {}
1112
+ "strict": true,
1113
+ "isESM": false,
1114
+ "relativePath": [
1115
+ "lib",
1116
+ "commands",
1117
+ "start",
1118
+ "index.js"
1119
+ ]
952
1120
  },
953
1121
  "start:studio": {
954
- "id": "start:studio",
955
- "description": "starts a new local instance of Studio",
956
- "strict": true,
957
- "pluginName": "@asyncapi/cli",
958
- "pluginAlias": "@asyncapi/cli",
959
- "pluginType": "core",
960
1122
  "aliases": [],
1123
+ "args": {},
1124
+ "description": "starts a new local instance of Studio",
961
1125
  "flags": {
962
1126
  "help": {
963
- "name": "help",
964
- "type": "boolean",
965
1127
  "char": "h",
966
1128
  "description": "Show CLI help.",
967
- "allowNo": false
1129
+ "name": "help",
1130
+ "allowNo": false,
1131
+ "type": "boolean"
968
1132
  },
969
1133
  "file": {
970
- "name": "file",
971
- "type": "option",
972
1134
  "char": "f",
973
1135
  "description": "path to the AsyncAPI file to link with Studio",
974
- "multiple": false
1136
+ "name": "file",
1137
+ "hasDynamicHelp": false,
1138
+ "multiple": false,
1139
+ "type": "option"
975
1140
  },
976
1141
  "port": {
977
- "name": "port",
978
- "type": "option",
979
1142
  "char": "p",
980
1143
  "description": "port in which to start Studio",
981
- "multiple": false
1144
+ "name": "port",
1145
+ "hasDynamicHelp": false,
1146
+ "multiple": false,
1147
+ "type": "option"
982
1148
  }
983
1149
  },
984
- "args": {}
985
- },
986
- "config:context:add": {
987
- "id": "config:context:add",
988
- "description": "Add a context to the store",
989
- "strict": true,
990
- "pluginName": "@asyncapi/cli",
1150
+ "hasDynamicHelp": false,
1151
+ "hiddenAliases": [],
1152
+ "id": "start:studio",
991
1153
  "pluginAlias": "@asyncapi/cli",
1154
+ "pluginName": "@asyncapi/cli",
992
1155
  "pluginType": "core",
1156
+ "strict": true,
1157
+ "isESM": false,
1158
+ "relativePath": [
1159
+ "lib",
1160
+ "commands",
1161
+ "start",
1162
+ "studio.js"
1163
+ ]
1164
+ },
1165
+ "config:context:add": {
993
1166
  "aliases": [],
994
- "flags": {
995
- "help": {
996
- "name": "help",
997
- "type": "boolean",
998
- "char": "h",
999
- "description": "Show CLI help.",
1000
- "allowNo": false
1001
- },
1002
- "set-current": {
1003
- "name": "set-current",
1004
- "type": "boolean",
1005
- "char": "s",
1006
- "description": "Set context being added as the current context",
1007
- "required": false,
1008
- "allowNo": false
1009
- }
1010
- },
1011
1167
  "args": {
1012
1168
  "context-name": {
1013
- "name": "context-name",
1014
1169
  "description": "context name",
1170
+ "name": "context-name",
1015
1171
  "required": true
1016
1172
  },
1017
1173
  "spec-file-path": {
1018
- "name": "spec-file-path",
1019
1174
  "description": "file path of the spec file",
1175
+ "name": "spec-file-path",
1020
1176
  "required": true
1021
1177
  }
1022
- }
1023
- },
1024
- "config:context:current": {
1025
- "id": "config:context:current",
1026
- "description": "Shows the current context that is being used",
1027
- "strict": true,
1028
- "pluginName": "@asyncapi/cli",
1029
- "pluginAlias": "@asyncapi/cli",
1030
- "pluginType": "core",
1031
- "aliases": [],
1178
+ },
1179
+ "description": "Add a context to the store",
1032
1180
  "flags": {
1033
1181
  "help": {
1034
- "name": "help",
1035
- "type": "boolean",
1036
1182
  "char": "h",
1037
1183
  "description": "Show CLI help.",
1038
- "allowNo": false
1184
+ "name": "help",
1185
+ "allowNo": false,
1186
+ "type": "boolean"
1187
+ },
1188
+ "set-current": {
1189
+ "char": "s",
1190
+ "description": "Set context being added as the current context",
1191
+ "name": "set-current",
1192
+ "required": false,
1193
+ "allowNo": false,
1194
+ "type": "boolean"
1039
1195
  }
1040
1196
  },
1041
- "args": {}
1042
- },
1043
- "config:context:edit": {
1044
- "id": "config:context:edit",
1045
- "description": "Edit a context in the store",
1046
- "strict": true,
1047
- "pluginName": "@asyncapi/cli",
1197
+ "hasDynamicHelp": false,
1198
+ "hiddenAliases": [],
1199
+ "id": "config:context:add",
1048
1200
  "pluginAlias": "@asyncapi/cli",
1201
+ "pluginName": "@asyncapi/cli",
1049
1202
  "pluginType": "core",
1203
+ "strict": true,
1204
+ "isESM": false,
1205
+ "relativePath": [
1206
+ "lib",
1207
+ "commands",
1208
+ "config",
1209
+ "context",
1210
+ "add.js"
1211
+ ]
1212
+ },
1213
+ "config:context:current": {
1050
1214
  "aliases": [],
1215
+ "args": {},
1216
+ "description": "Shows the current context that is being used",
1051
1217
  "flags": {
1052
1218
  "help": {
1053
- "name": "help",
1054
- "type": "boolean",
1055
1219
  "char": "h",
1056
1220
  "description": "Show CLI help.",
1057
- "allowNo": false
1221
+ "name": "help",
1222
+ "allowNo": false,
1223
+ "type": "boolean"
1058
1224
  }
1059
1225
  },
1226
+ "hasDynamicHelp": false,
1227
+ "hiddenAliases": [],
1228
+ "id": "config:context:current",
1229
+ "pluginAlias": "@asyncapi/cli",
1230
+ "pluginName": "@asyncapi/cli",
1231
+ "pluginType": "core",
1232
+ "strict": true,
1233
+ "isESM": false,
1234
+ "relativePath": [
1235
+ "lib",
1236
+ "commands",
1237
+ "config",
1238
+ "context",
1239
+ "current.js"
1240
+ ]
1241
+ },
1242
+ "config:context:edit": {
1243
+ "aliases": [],
1060
1244
  "args": {
1061
1245
  "context-name": {
1062
- "name": "context-name",
1063
1246
  "description": "context name",
1247
+ "name": "context-name",
1064
1248
  "required": true
1065
1249
  },
1066
1250
  "new-spec-file-path": {
1067
- "name": "new-spec-file-path",
1068
1251
  "description": "new file path of the spec file",
1252
+ "name": "new-spec-file-path",
1069
1253
  "required": true
1070
1254
  }
1071
- }
1255
+ },
1256
+ "description": "Edit a context in the store",
1257
+ "flags": {
1258
+ "help": {
1259
+ "char": "h",
1260
+ "description": "Show CLI help.",
1261
+ "name": "help",
1262
+ "allowNo": false,
1263
+ "type": "boolean"
1264
+ }
1265
+ },
1266
+ "hasDynamicHelp": false,
1267
+ "hiddenAliases": [],
1268
+ "id": "config:context:edit",
1269
+ "pluginAlias": "@asyncapi/cli",
1270
+ "pluginName": "@asyncapi/cli",
1271
+ "pluginType": "core",
1272
+ "strict": true,
1273
+ "isESM": false,
1274
+ "relativePath": [
1275
+ "lib",
1276
+ "commands",
1277
+ "config",
1278
+ "context",
1279
+ "edit.js"
1280
+ ]
1072
1281
  },
1073
1282
  "config:context": {
1074
- "id": "config:context",
1283
+ "aliases": [],
1284
+ "args": {},
1075
1285
  "description": "Manage short aliases for full paths to AsyncAPI documents",
1076
- "strict": true,
1077
- "pluginName": "@asyncapi/cli",
1286
+ "flags": {},
1287
+ "hasDynamicHelp": false,
1288
+ "hiddenAliases": [],
1289
+ "id": "config:context",
1078
1290
  "pluginAlias": "@asyncapi/cli",
1291
+ "pluginName": "@asyncapi/cli",
1079
1292
  "pluginType": "core",
1080
- "aliases": [],
1081
- "flags": {},
1082
- "args": {}
1293
+ "strict": true,
1294
+ "isESM": false,
1295
+ "relativePath": [
1296
+ "lib",
1297
+ "commands",
1298
+ "config",
1299
+ "context",
1300
+ "index.js"
1301
+ ]
1083
1302
  },
1084
1303
  "config:context:init": {
1085
- "id": "config:context:init",
1086
- "description": "Initialize context",
1087
- "strict": true,
1088
- "pluginName": "@asyncapi/cli",
1089
- "pluginAlias": "@asyncapi/cli",
1090
- "pluginType": "core",
1091
1304
  "aliases": [],
1092
- "flags": {
1093
- "help": {
1094
- "name": "help",
1095
- "type": "boolean",
1096
- "char": "h",
1097
- "description": "Show CLI help.",
1098
- "allowNo": false
1099
- }
1100
- },
1101
1305
  "args": {
1102
1306
  "context-file-path": {
1103
- "name": "context-file-path",
1104
1307
  "description": "Specify directory in which context file should be created:\n - current directory : asyncapi config context init . (default)\n - root of current repository : asyncapi config context init ./\n - user's home directory : asyncapi config context init ~",
1308
+ "name": "context-file-path",
1105
1309
  "required": false
1106
1310
  }
1107
1311
  },
1108
- "contextFilePathMessage": "Specify directory in which context file should be created:\n - current directory : asyncapi config context init . (default)\n - root of current repository : asyncapi config context init ./\n - user's home directory : asyncapi config context init ~"
1109
- },
1110
- "config:context:list": {
1111
- "id": "config:context:list",
1112
- "description": "List all the stored contexts in the store",
1113
- "strict": true,
1114
- "pluginName": "@asyncapi/cli",
1115
- "pluginAlias": "@asyncapi/cli",
1116
- "pluginType": "core",
1117
- "aliases": [],
1312
+ "description": "Initialize context",
1118
1313
  "flags": {
1119
1314
  "help": {
1120
- "name": "help",
1121
- "type": "boolean",
1122
1315
  "char": "h",
1123
1316
  "description": "Show CLI help.",
1124
- "allowNo": false
1317
+ "name": "help",
1318
+ "allowNo": false,
1319
+ "type": "boolean"
1125
1320
  }
1126
1321
  },
1127
- "args": {}
1128
- },
1129
- "config:context:remove": {
1130
- "id": "config:context:remove",
1131
- "description": "Delete a context from the store",
1132
- "strict": true,
1133
- "pluginName": "@asyncapi/cli",
1322
+ "hasDynamicHelp": false,
1323
+ "hiddenAliases": [],
1324
+ "id": "config:context:init",
1134
1325
  "pluginAlias": "@asyncapi/cli",
1326
+ "pluginName": "@asyncapi/cli",
1135
1327
  "pluginType": "core",
1328
+ "strict": true,
1329
+ "contextFilePathMessage": "Specify directory in which context file should be created:\n - current directory : asyncapi config context init . (default)\n - root of current repository : asyncapi config context init ./\n - user's home directory : asyncapi config context init ~",
1330
+ "isESM": false,
1331
+ "relativePath": [
1332
+ "lib",
1333
+ "commands",
1334
+ "config",
1335
+ "context",
1336
+ "init.js"
1337
+ ]
1338
+ },
1339
+ "config:context:list": {
1136
1340
  "aliases": [],
1341
+ "args": {},
1342
+ "description": "List all the stored contexts in the store",
1137
1343
  "flags": {
1138
1344
  "help": {
1139
- "name": "help",
1140
- "type": "boolean",
1141
1345
  "char": "h",
1142
1346
  "description": "Show CLI help.",
1143
- "allowNo": false
1347
+ "name": "help",
1348
+ "allowNo": false,
1349
+ "type": "boolean"
1144
1350
  }
1145
1351
  },
1352
+ "hasDynamicHelp": false,
1353
+ "hiddenAliases": [],
1354
+ "id": "config:context:list",
1355
+ "pluginAlias": "@asyncapi/cli",
1356
+ "pluginName": "@asyncapi/cli",
1357
+ "pluginType": "core",
1358
+ "strict": true,
1359
+ "isESM": false,
1360
+ "relativePath": [
1361
+ "lib",
1362
+ "commands",
1363
+ "config",
1364
+ "context",
1365
+ "list.js"
1366
+ ]
1367
+ },
1368
+ "config:context:remove": {
1369
+ "aliases": [],
1146
1370
  "args": {
1147
1371
  "context-name": {
1148
- "name": "context-name",
1149
1372
  "description": "Name of the context to delete",
1373
+ "name": "context-name",
1150
1374
  "required": true
1151
1375
  }
1152
- }
1153
- },
1154
- "config:context:use": {
1155
- "id": "config:context:use",
1156
- "description": "Set a context as current",
1157
- "strict": true,
1158
- "pluginName": "@asyncapi/cli",
1159
- "pluginAlias": "@asyncapi/cli",
1160
- "pluginType": "core",
1161
- "aliases": [],
1376
+ },
1377
+ "description": "Delete a context from the store",
1162
1378
  "flags": {
1163
1379
  "help": {
1164
- "name": "help",
1165
- "type": "boolean",
1166
1380
  "char": "h",
1167
1381
  "description": "Show CLI help.",
1168
- "allowNo": false
1382
+ "name": "help",
1383
+ "allowNo": false,
1384
+ "type": "boolean"
1169
1385
  }
1170
1386
  },
1387
+ "hasDynamicHelp": false,
1388
+ "hiddenAliases": [],
1389
+ "id": "config:context:remove",
1390
+ "pluginAlias": "@asyncapi/cli",
1391
+ "pluginName": "@asyncapi/cli",
1392
+ "pluginType": "core",
1393
+ "strict": true,
1394
+ "isESM": false,
1395
+ "relativePath": [
1396
+ "lib",
1397
+ "commands",
1398
+ "config",
1399
+ "context",
1400
+ "remove.js"
1401
+ ]
1402
+ },
1403
+ "config:context:use": {
1404
+ "aliases": [],
1171
1405
  "args": {
1172
1406
  "context-name": {
1173
- "name": "context-name",
1174
1407
  "description": "name of the saved context",
1408
+ "name": "context-name",
1175
1409
  "required": true
1176
1410
  }
1177
- }
1411
+ },
1412
+ "description": "Set a context as current",
1413
+ "flags": {
1414
+ "help": {
1415
+ "char": "h",
1416
+ "description": "Show CLI help.",
1417
+ "name": "help",
1418
+ "allowNo": false,
1419
+ "type": "boolean"
1420
+ }
1421
+ },
1422
+ "hasDynamicHelp": false,
1423
+ "hiddenAliases": [],
1424
+ "id": "config:context:use",
1425
+ "pluginAlias": "@asyncapi/cli",
1426
+ "pluginName": "@asyncapi/cli",
1427
+ "pluginType": "core",
1428
+ "strict": true,
1429
+ "isESM": false,
1430
+ "relativePath": [
1431
+ "lib",
1432
+ "commands",
1433
+ "config",
1434
+ "context",
1435
+ "use.js"
1436
+ ]
1178
1437
  }
1179
- }
1438
+ },
1439
+ "version": "1.6.0"
1180
1440
  }