@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli 4.1.3
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/LICENSE +201 -0
- package/README.md +117 -0
- package/assets/create-template/templates/default/asyncapi.yaml +34 -0
- package/assets/create-template/templates/default/package-lock.json +4062 -0
- package/assets/create-template/templates/default/package.json +10 -0
- package/assets/create-template/templates/default/readme.md +4 -0
- package/assets/create-template/templates/default/template/index.js +11 -0
- package/assets/examples/adeo-kafka-request-reply-asyncapi.yml +298 -0
- package/assets/examples/anyof-asyncapi.yml +36 -0
- package/assets/examples/application-headers-asyncapi.yml +86 -0
- package/assets/examples/correlation-id-asyncapi.yml +180 -0
- package/assets/examples/default-example.json +51 -0
- package/assets/examples/default-example.yaml +31 -0
- package/assets/examples/examples.json +82 -0
- package/assets/examples/gitter-streaming-asyncapi.yml +178 -0
- package/assets/examples/kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml +388 -0
- package/assets/examples/kraken-websocket-request-reply-multiple-channels-asyncapi.yml +394 -0
- package/assets/examples/mercure-asyncapi.yml +58 -0
- package/assets/examples/not-asyncapi.yml +29 -0
- package/assets/examples/oneof-asyncapi.yml +57 -0
- package/assets/examples/operation-security-asyncapi.yml +117 -0
- package/assets/examples/rpc-client-asyncapi.yml +72 -0
- package/assets/examples/rpc-server-asyncapi.yml +69 -0
- package/assets/examples/simple-asyncapi.yml +31 -0
- package/assets/examples/slack-rtm-asyncapi.yml +982 -0
- package/assets/examples/streetlights-kafka-asyncapi.yml +199 -0
- package/assets/examples/streetlights-mqtt-asyncapi.yml +253 -0
- package/assets/examples/streetlights-operation-security-asyncapi.yml +240 -0
- package/assets/examples/tutorial.yml +41 -0
- package/assets/examples/websocket-gemini-asyncapi.yml +301 -0
- package/assets/logo.png +0 -0
- package/assets/server-api.png +0 -0
- package/bin/dev +17 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +12 -0
- package/bin/run.cmd +3 -0
- package/bin/run_bin +13 -0
- package/bin/run_bin.cmd +3 -0
- package/lib/apps/api/app.d.ts +15 -0
- package/lib/apps/api/app.js +91 -0
- package/lib/apps/api/configs/development.json +16 -0
- package/lib/apps/api/configs/production.json +16 -0
- package/lib/apps/api/configs/test.json +16 -0
- package/lib/apps/api/constants.d.ts +1 -0
- package/lib/apps/api/constants.js +4 -0
- package/lib/apps/api/controllers/bundle.controller.d.ts +7 -0
- package/lib/apps/api/controllers/bundle.controller.js +44 -0
- package/lib/apps/api/controllers/convert.controller.d.ts +11 -0
- package/lib/apps/api/controllers/convert.controller.js +69 -0
- package/lib/apps/api/controllers/diff.controller.d.ts +7 -0
- package/lib/apps/api/controllers/diff.controller.js +42 -0
- package/lib/apps/api/controllers/docs.controller.d.ts +6 -0
- package/lib/apps/api/controllers/docs.controller.js +24 -0
- package/lib/apps/api/controllers/generate.controller.d.ts +22 -0
- package/lib/apps/api/controllers/generate.controller.js +174 -0
- package/lib/apps/api/controllers/help.controller.d.ts +6 -0
- package/lib/apps/api/controllers/help.controller.js +101 -0
- package/lib/apps/api/controllers/parse.controller.d.ts +10 -0
- package/lib/apps/api/controllers/parse.controller.js +35 -0
- package/lib/apps/api/controllers/validate.controller.d.ts +10 -0
- package/lib/apps/api/controllers/validate.controller.js +50 -0
- package/lib/apps/api/controllers/version.controller.d.ts +8 -0
- package/lib/apps/api/controllers/version.controller.js +69 -0
- package/lib/apps/api/exceptions/problem.exception.d.ts +14 -0
- package/lib/apps/api/exceptions/problem.exception.js +10 -0
- package/lib/apps/api/index.d.ts +10 -0
- package/lib/apps/api/index.js +23 -0
- package/lib/apps/api/middlewares/logger.middleware.d.ts +2 -0
- package/lib/apps/api/middlewares/logger.middleware.js +12 -0
- package/lib/apps/api/middlewares/problem.middleware.d.ts +6 -0
- package/lib/apps/api/middlewares/problem.middleware.js +27 -0
- package/lib/apps/api/middlewares/validation.middleware.d.ts +12 -0
- package/lib/apps/api/middlewares/validation.middleware.js +245 -0
- package/lib/apps/api/server.d.ts +3 -0
- package/lib/apps/api/server.js +19 -0
- package/lib/apps/cli/commands/bundle.d.ts +15 -0
- package/lib/apps/cli/commands/bundle.js +75 -0
- package/lib/apps/cli/commands/config/analytics.d.ts +11 -0
- package/lib/apps/cli/commands/config/analytics.js +61 -0
- package/lib/apps/cli/commands/config/auth/add.d.ts +13 -0
- package/lib/apps/cli/commands/config/auth/add.js +68 -0
- package/lib/apps/cli/commands/config/context/add.d.ts +13 -0
- package/lib/apps/cli/commands/config/context/add.js +46 -0
- package/lib/apps/cli/commands/config/context/current.d.ts +8 -0
- package/lib/apps/cli/commands/config/context/current.js +37 -0
- package/lib/apps/cli/commands/config/context/edit.d.ts +12 -0
- package/lib/apps/cli/commands/config/context/edit.js +44 -0
- package/lib/apps/cli/commands/config/context/index.d.ts +5 -0
- package/lib/apps/cli/commands/config/context/index.js +16 -0
- package/lib/apps/cli/commands/config/context/init.d.ts +12 -0
- package/lib/apps/cli/commands/config/context/init.js +31 -0
- package/lib/apps/cli/commands/config/context/list.d.ts +8 -0
- package/lib/apps/cli/commands/config/context/list.js +36 -0
- package/lib/apps/cli/commands/config/context/remove.d.ts +11 -0
- package/lib/apps/cli/commands/config/context/remove.js +39 -0
- package/lib/apps/cli/commands/config/context/use.d.ts +11 -0
- package/lib/apps/cli/commands/config/context/use.js +40 -0
- package/lib/apps/cli/commands/config/index.d.ts +5 -0
- package/lib/apps/cli/commands/config/index.js +16 -0
- package/lib/apps/cli/commands/config/versions.d.ts +8 -0
- package/lib/apps/cli/commands/config/versions.js +56 -0
- package/lib/apps/cli/commands/convert.d.ts +21 -0
- package/lib/apps/cli/commands/convert.js +85 -0
- package/lib/apps/cli/commands/diff.d.ts +36 -0
- package/lib/apps/cli/commands/diff.js +335 -0
- package/lib/apps/cli/commands/format.d.ts +18 -0
- package/lib/apps/cli/commands/format.js +97 -0
- package/lib/apps/cli/commands/generate/client.d.ts +30 -0
- package/lib/apps/cli/commands/generate/client.js +94 -0
- package/lib/apps/cli/commands/generate/fromTemplate.d.ts +29 -0
- package/lib/apps/cli/commands/generate/fromTemplate.js +91 -0
- package/lib/apps/cli/commands/generate/index.d.ts +5 -0
- package/lib/apps/cli/commands/generate/index.js +15 -0
- package/lib/apps/cli/commands/generate/models.d.ts +16 -0
- package/lib/apps/cli/commands/generate/models.js +166 -0
- package/lib/apps/cli/commands/new/file.d.ts +16 -0
- package/lib/apps/cli/commands/new/file.js +180 -0
- package/lib/apps/cli/commands/new/index.d.ts +5 -0
- package/lib/apps/cli/commands/new/index.js +15 -0
- package/lib/apps/cli/commands/new/template.d.ts +18 -0
- package/lib/apps/cli/commands/new/template.js +102 -0
- package/lib/apps/cli/commands/optimize.d.ts +41 -0
- package/lib/apps/cli/commands/optimize.js +289 -0
- package/lib/apps/cli/commands/pretty.d.ts +12 -0
- package/lib/apps/cli/commands/pretty.js +70 -0
- package/lib/apps/cli/commands/start/api.d.ts +11 -0
- package/lib/apps/cli/commands/start/api.js +23 -0
- package/lib/apps/cli/commands/start/index.d.ts +5 -0
- package/lib/apps/cli/commands/start/index.js +15 -0
- package/lib/apps/cli/commands/start/preview.d.ts +17 -0
- package/lib/apps/cli/commands/start/preview.js +41 -0
- package/lib/apps/cli/commands/start/studio.d.ts +16 -0
- package/lib/apps/cli/commands/start/studio.js +94 -0
- package/lib/apps/cli/commands/validate.d.ts +23 -0
- package/lib/apps/cli/commands/validate.js +95 -0
- package/lib/apps/cli/internal/args/generate.args.d.ts +3 -0
- package/lib/apps/cli/internal/args/generate.args.js +10 -0
- package/lib/apps/cli/internal/base/BaseGeneratorCommand.d.ts +42 -0
- package/lib/apps/cli/internal/base/BaseGeneratorCommand.js +119 -0
- package/lib/apps/cli/internal/base.d.ts +20 -0
- package/lib/apps/cli/internal/base.js +173 -0
- package/lib/apps/cli/internal/flags/bundle.flags.d.ts +7 -0
- package/lib/apps/cli/internal/flags/bundle.flags.js +26 -0
- package/lib/apps/cli/internal/flags/config/analytics.flags.d.ts +6 -0
- package/lib/apps/cli/internal/flags/config/analytics.flags.js +24 -0
- package/lib/apps/cli/internal/flags/config/context.flags.d.ts +4 -0
- package/lib/apps/cli/internal/flags/config/context.flags.js +16 -0
- package/lib/apps/cli/internal/flags/convert.flags.d.ts +7 -0
- package/lib/apps/cli/internal/flags/convert.flags.js +32 -0
- package/lib/apps/cli/internal/flags/diff.flags.d.ts +13 -0
- package/lib/apps/cli/internal/flags/diff.flags.js +29 -0
- package/lib/apps/cli/internal/flags/format.flags.d.ts +6 -0
- package/lib/apps/cli/internal/flags/format.flags.js +22 -0
- package/lib/apps/cli/internal/flags/generate/clients.flags.d.ts +16 -0
- package/lib/apps/cli/internal/flags/generate/clients.flags.js +8 -0
- package/lib/apps/cli/internal/flags/generate/fromTemplate.flags.d.ts +16 -0
- package/lib/apps/cli/internal/flags/generate/fromTemplate.flags.js +8 -0
- package/lib/apps/cli/internal/flags/generate/models.flags.d.ts +1 -0
- package/lib/apps/cli/internal/flags/generate/models.flags.js +14 -0
- package/lib/apps/cli/internal/flags/generate/sharedFlags.d.ts +16 -0
- package/lib/apps/cli/internal/flags/generate/sharedFlags.js +57 -0
- package/lib/apps/cli/internal/flags/global.flags.d.ts +4 -0
- package/lib/apps/cli/internal/flags/global.flags.js +18 -0
- package/lib/apps/cli/internal/flags/new/file.flags.d.ts +8 -0
- package/lib/apps/cli/internal/flags/new/file.flags.js +20 -0
- package/lib/apps/cli/internal/flags/new/template.flags.d.ts +7 -0
- package/lib/apps/cli/internal/flags/new/template.flags.js +28 -0
- package/lib/apps/cli/internal/flags/optimize.flags.d.ts +21 -0
- package/lib/apps/cli/internal/flags/optimize.flags.js +51 -0
- package/lib/apps/cli/internal/flags/parser.flags.d.ts +10 -0
- package/lib/apps/cli/internal/flags/parser.flags.js +28 -0
- package/lib/apps/cli/internal/flags/pretty.flags.d.ts +3 -0
- package/lib/apps/cli/internal/flags/pretty.flags.js +13 -0
- package/lib/apps/cli/internal/flags/proxy.flags.d.ts +4 -0
- package/lib/apps/cli/internal/flags/proxy.flags.js +17 -0
- package/lib/apps/cli/internal/flags/start/api.flags.d.ts +5 -0
- package/lib/apps/cli/internal/flags/start/api.flags.js +20 -0
- package/lib/apps/cli/internal/flags/start/preview.flags.d.ts +9 -0
- package/lib/apps/cli/internal/flags/start/preview.flags.js +32 -0
- package/lib/apps/cli/internal/flags/start/studio.flags.d.ts +7 -0
- package/lib/apps/cli/internal/flags/start/studio.flags.js +25 -0
- package/lib/apps/cli/internal/flags/validate.flags.d.ts +11 -0
- package/lib/apps/cli/internal/flags/validate.flags.js +22 -0
- package/lib/apps/cli/internal/globals.d.ts +10 -0
- package/lib/apps/cli/internal/globals.js +46 -0
- package/lib/apps/cli/internal/hooks/command_not_found/myhook.d.ts +4 -0
- package/lib/apps/cli/internal/hooks/command_not_found/myhook.js +85 -0
- package/lib/domains/models/Context.d.ts +21 -0
- package/lib/domains/models/Context.js +321 -0
- package/lib/domains/models/Preview.d.ts +2 -0
- package/lib/domains/models/Preview.js +227 -0
- package/lib/domains/models/SpecificationFile.d.ts +40 -0
- package/lib/domains/models/SpecificationFile.js +295 -0
- package/lib/domains/models/Studio.d.ts +2 -0
- package/lib/domains/models/Studio.js +182 -0
- package/lib/domains/models/generate/ClientLanguages.d.ts +12 -0
- package/lib/domains/models/generate/ClientLanguages.js +17 -0
- package/lib/domains/models/generate/Flags.d.ts +9 -0
- package/lib/domains/models/generate/Flags.js +2 -0
- package/lib/domains/services/archiver.service.d.ts +17 -0
- package/lib/domains/services/archiver.service.js +53 -0
- package/lib/domains/services/base.service.d.ts +6 -0
- package/lib/domains/services/base.service.js +26 -0
- package/lib/domains/services/config.service.d.ts +42 -0
- package/lib/domains/services/config.service.js +95 -0
- package/lib/domains/services/convert.service.d.ts +12 -0
- package/lib/domains/services/convert.service.js +65 -0
- package/lib/domains/services/generator.service.d.ts +15 -0
- package/lib/domains/services/generator.service.js +75 -0
- package/lib/domains/services/validation.service.d.ts +54 -0
- package/lib/domains/services/validation.service.js +375 -0
- package/lib/errors/context-error.d.ts +26 -0
- package/lib/errors/context-error.js +71 -0
- package/lib/errors/diff-error.d.ts +9 -0
- package/lib/errors/diff-error.js +27 -0
- package/lib/errors/generator-error.d.ts +3 -0
- package/lib/errors/generator-error.js +11 -0
- package/lib/errors/specification-file.d.ts +18 -0
- package/lib/errors/specification-file.js +65 -0
- package/lib/errors/validation-error.d.ts +11 -0
- package/lib/errors/validation-error.js +55 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +11 -0
- package/lib/interfaces/index.d.ts +87 -0
- package/lib/interfaces/index.js +7 -0
- package/lib/utils/ajv.d.ts +2 -0
- package/lib/utils/ajv.js +18 -0
- package/lib/utils/app-openapi.d.ts +4 -0
- package/lib/utils/app-openapi.js +28 -0
- package/lib/utils/generate/flags.d.ts +2 -0
- package/lib/utils/generate/flags.js +14 -0
- package/lib/utils/generate/mapBaseUrl.d.ts +6 -0
- package/lib/utils/generate/mapBaseUrl.js +34 -0
- package/lib/utils/generate/parseParams.d.ts +3 -0
- package/lib/utils/generate/parseParams.js +58 -0
- package/lib/utils/generate/prompts.d.ts +4 -0
- package/lib/utils/generate/prompts.js +77 -0
- package/lib/utils/generate/registry.d.ts +2 -0
- package/lib/utils/generate/registry.js +30 -0
- package/lib/utils/generate/watcher.d.ts +51 -0
- package/lib/utils/generate/watcher.js +230 -0
- package/lib/utils/logger.d.ts +6 -0
- package/lib/utils/logger.js +33 -0
- package/lib/utils/retrieve-language.d.ts +1 -0
- package/lib/utils/retrieve-language.js +9 -0
- package/lib/utils/scoreCalculator.d.ts +2 -0
- package/lib/utils/scoreCalculator.js +22 -0
- package/lib/utils/temp-dir.d.ts +2 -0
- package/lib/utils/temp-dir.js +26 -0
- package/oclif.manifest.json +2137 -0
- package/openapi.yaml +713 -0
- package/package.json +203 -0
- package/scripts/enableAutoComplete.js +160 -0
- package/scripts/fetch-asyncapi-example.js +126 -0
- package/scripts/generateTypesForGenerateCommand.js +40 -0
- package/scripts/releasePackagesRename.js +88 -0
- package/scripts/updateUsageDocs.js +73 -0
|
@@ -0,0 +1,2137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"bundle": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Bundle one or multiple AsyncAPI Documents and their references together.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"asyncapi bundle ./asyncapi.yaml > final-asyncapi.yaml",
|
|
9
|
+
"asyncapi bundle ./asyncapi.yaml --output final-asyncapi.yaml",
|
|
10
|
+
"asyncapi bundle ./asyncapi.yaml ./features.yaml",
|
|
11
|
+
"asyncapi bundle ./asyncapi.yaml ./features.yaml --base ./main.yaml",
|
|
12
|
+
"asyncapi bundle ./asyncapi.yaml ./features.yaml --base ./main.yaml --xOrigin",
|
|
13
|
+
"asyncapi bundle ./asyncapi.yaml -o final-asyncapi.yaml --base ../public-api/main.yaml --baseDir ./social-media/comments-service"
|
|
14
|
+
],
|
|
15
|
+
"flags": {
|
|
16
|
+
"help": {
|
|
17
|
+
"char": "h",
|
|
18
|
+
"description": "Show CLI help.",
|
|
19
|
+
"name": "help",
|
|
20
|
+
"allowNo": false,
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"output": {
|
|
24
|
+
"char": "o",
|
|
25
|
+
"description": "The output file name. Omitting this flag the result will be printed in the console.",
|
|
26
|
+
"name": "output",
|
|
27
|
+
"hasDynamicHelp": false,
|
|
28
|
+
"multiple": false,
|
|
29
|
+
"type": "option"
|
|
30
|
+
},
|
|
31
|
+
"base": {
|
|
32
|
+
"char": "b",
|
|
33
|
+
"description": "Path to the file which will act as a base. This is required when some properties need to be overwritten.",
|
|
34
|
+
"name": "base",
|
|
35
|
+
"hasDynamicHelp": false,
|
|
36
|
+
"multiple": false,
|
|
37
|
+
"type": "option"
|
|
38
|
+
},
|
|
39
|
+
"baseDir": {
|
|
40
|
+
"char": "d",
|
|
41
|
+
"description": "One relative/absolute path to directory relative to which paths to AsyncAPI Documents that should be bundled will be resolved.",
|
|
42
|
+
"name": "baseDir",
|
|
43
|
+
"hasDynamicHelp": false,
|
|
44
|
+
"multiple": false,
|
|
45
|
+
"type": "option"
|
|
46
|
+
},
|
|
47
|
+
"xOrigin": {
|
|
48
|
+
"char": "x",
|
|
49
|
+
"description": "Pass this switch to generate properties \"x-origin\" that will contain historical values of dereferenced \"$ref\"s.",
|
|
50
|
+
"name": "xOrigin",
|
|
51
|
+
"allowNo": false,
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"hiddenAliases": [],
|
|
57
|
+
"id": "bundle",
|
|
58
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
59
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
60
|
+
"pluginType": "core",
|
|
61
|
+
"strict": false,
|
|
62
|
+
"isESM": false,
|
|
63
|
+
"relativePath": [
|
|
64
|
+
"lib",
|
|
65
|
+
"apps",
|
|
66
|
+
"cli",
|
|
67
|
+
"commands",
|
|
68
|
+
"bundle.js"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"convert": {
|
|
72
|
+
"aliases": [],
|
|
73
|
+
"args": {
|
|
74
|
+
"spec-file": {
|
|
75
|
+
"description": "spec path, url, or context-name",
|
|
76
|
+
"name": "spec-file",
|
|
77
|
+
"required": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"description": "Convert asyncapi documents older to newer versions or OpenAPI/postman-collection documents to AsyncAPI",
|
|
81
|
+
"flags": {
|
|
82
|
+
"help": {
|
|
83
|
+
"char": "h",
|
|
84
|
+
"description": "Show CLI help.",
|
|
85
|
+
"name": "help",
|
|
86
|
+
"allowNo": false,
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"output": {
|
|
90
|
+
"char": "o",
|
|
91
|
+
"description": "path to the file where the result is saved",
|
|
92
|
+
"name": "output",
|
|
93
|
+
"hasDynamicHelp": false,
|
|
94
|
+
"multiple": false,
|
|
95
|
+
"type": "option"
|
|
96
|
+
},
|
|
97
|
+
"format": {
|
|
98
|
+
"char": "f",
|
|
99
|
+
"description": "Specify the format to convert from (openapi or asyncapi)",
|
|
100
|
+
"name": "format",
|
|
101
|
+
"required": true,
|
|
102
|
+
"default": "asyncapi",
|
|
103
|
+
"hasDynamicHelp": false,
|
|
104
|
+
"multiple": false,
|
|
105
|
+
"options": [
|
|
106
|
+
"openapi",
|
|
107
|
+
"asyncapi",
|
|
108
|
+
"postman-collection"
|
|
109
|
+
],
|
|
110
|
+
"type": "option"
|
|
111
|
+
},
|
|
112
|
+
"target-version": {
|
|
113
|
+
"char": "t",
|
|
114
|
+
"description": "asyncapi version to convert to",
|
|
115
|
+
"name": "target-version",
|
|
116
|
+
"default": "3.0.0",
|
|
117
|
+
"hasDynamicHelp": false,
|
|
118
|
+
"multiple": false,
|
|
119
|
+
"type": "option"
|
|
120
|
+
},
|
|
121
|
+
"perspective": {
|
|
122
|
+
"char": "p",
|
|
123
|
+
"description": "Perspective to use when converting OpenAPI to AsyncAPI (client or server). Note: This option is only applicable for OpenAPI to AsyncAPI conversions.",
|
|
124
|
+
"name": "perspective",
|
|
125
|
+
"default": "server",
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"multiple": false,
|
|
128
|
+
"options": [
|
|
129
|
+
"client",
|
|
130
|
+
"server"
|
|
131
|
+
],
|
|
132
|
+
"type": "option"
|
|
133
|
+
},
|
|
134
|
+
"proxyHost": {
|
|
135
|
+
"description": "Name of the ProxyHost",
|
|
136
|
+
"name": "proxyHost",
|
|
137
|
+
"required": false,
|
|
138
|
+
"hasDynamicHelp": false,
|
|
139
|
+
"multiple": false,
|
|
140
|
+
"type": "option"
|
|
141
|
+
},
|
|
142
|
+
"proxyPort": {
|
|
143
|
+
"description": "Port number number for the proxyHost.",
|
|
144
|
+
"name": "proxyPort",
|
|
145
|
+
"required": false,
|
|
146
|
+
"hasDynamicHelp": false,
|
|
147
|
+
"multiple": false,
|
|
148
|
+
"type": "option"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"hasDynamicHelp": false,
|
|
152
|
+
"hiddenAliases": [],
|
|
153
|
+
"id": "convert",
|
|
154
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
155
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
156
|
+
"pluginType": "core",
|
|
157
|
+
"strict": true,
|
|
158
|
+
"metricsMetadata": {},
|
|
159
|
+
"isESM": false,
|
|
160
|
+
"relativePath": [
|
|
161
|
+
"lib",
|
|
162
|
+
"apps",
|
|
163
|
+
"cli",
|
|
164
|
+
"commands",
|
|
165
|
+
"convert.js"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"diff": {
|
|
169
|
+
"aliases": [],
|
|
170
|
+
"args": {
|
|
171
|
+
"old": {
|
|
172
|
+
"description": "old spec path, URL or context-name",
|
|
173
|
+
"name": "old",
|
|
174
|
+
"required": true
|
|
175
|
+
},
|
|
176
|
+
"new": {
|
|
177
|
+
"description": "new spec path, URL or context-name",
|
|
178
|
+
"name": "new",
|
|
179
|
+
"required": true
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"description": "Find diff between two asyncapi files",
|
|
183
|
+
"flags": {
|
|
184
|
+
"help": {
|
|
185
|
+
"char": "h",
|
|
186
|
+
"description": "Show CLI help.",
|
|
187
|
+
"name": "help",
|
|
188
|
+
"allowNo": false,
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
},
|
|
191
|
+
"format": {
|
|
192
|
+
"char": "f",
|
|
193
|
+
"description": "format of the output",
|
|
194
|
+
"name": "format",
|
|
195
|
+
"default": "yaml",
|
|
196
|
+
"hasDynamicHelp": false,
|
|
197
|
+
"multiple": false,
|
|
198
|
+
"options": [
|
|
199
|
+
"json",
|
|
200
|
+
"yaml",
|
|
201
|
+
"yml",
|
|
202
|
+
"md"
|
|
203
|
+
],
|
|
204
|
+
"type": "option"
|
|
205
|
+
},
|
|
206
|
+
"type": {
|
|
207
|
+
"char": "t",
|
|
208
|
+
"description": "type of the output",
|
|
209
|
+
"name": "type",
|
|
210
|
+
"default": "all",
|
|
211
|
+
"hasDynamicHelp": false,
|
|
212
|
+
"multiple": false,
|
|
213
|
+
"options": [
|
|
214
|
+
"breaking",
|
|
215
|
+
"non-breaking",
|
|
216
|
+
"unclassified",
|
|
217
|
+
"all"
|
|
218
|
+
],
|
|
219
|
+
"type": "option"
|
|
220
|
+
},
|
|
221
|
+
"markdownSubtype": {
|
|
222
|
+
"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.",
|
|
223
|
+
"name": "markdownSubtype",
|
|
224
|
+
"hasDynamicHelp": false,
|
|
225
|
+
"multiple": false,
|
|
226
|
+
"options": [
|
|
227
|
+
"json",
|
|
228
|
+
"yaml",
|
|
229
|
+
"yml"
|
|
230
|
+
],
|
|
231
|
+
"type": "option"
|
|
232
|
+
},
|
|
233
|
+
"overrides": {
|
|
234
|
+
"char": "o",
|
|
235
|
+
"description": "path to JSON file containing the override properties",
|
|
236
|
+
"name": "overrides",
|
|
237
|
+
"hasDynamicHelp": false,
|
|
238
|
+
"multiple": false,
|
|
239
|
+
"type": "option"
|
|
240
|
+
},
|
|
241
|
+
"no-error": {
|
|
242
|
+
"description": "don't show error on breaking changes",
|
|
243
|
+
"name": "no-error",
|
|
244
|
+
"allowNo": false,
|
|
245
|
+
"type": "boolean"
|
|
246
|
+
},
|
|
247
|
+
"watch": {
|
|
248
|
+
"char": "w",
|
|
249
|
+
"description": "Enable watch mode",
|
|
250
|
+
"name": "watch",
|
|
251
|
+
"allowNo": false,
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
254
|
+
"log-diagnostics": {
|
|
255
|
+
"description": "log validation diagnostics or not",
|
|
256
|
+
"name": "log-diagnostics",
|
|
257
|
+
"allowNo": true,
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
"diagnostics-format": {
|
|
261
|
+
"description": "format to use for validation diagnostics",
|
|
262
|
+
"name": "diagnostics-format",
|
|
263
|
+
"default": "stylish",
|
|
264
|
+
"hasDynamicHelp": false,
|
|
265
|
+
"multiple": false,
|
|
266
|
+
"options": [
|
|
267
|
+
"json",
|
|
268
|
+
"stylish",
|
|
269
|
+
"junit",
|
|
270
|
+
"html",
|
|
271
|
+
"text",
|
|
272
|
+
"teamcity",
|
|
273
|
+
"pretty"
|
|
274
|
+
],
|
|
275
|
+
"type": "option"
|
|
276
|
+
},
|
|
277
|
+
"fail-severity": {
|
|
278
|
+
"description": "diagnostics of this level or above will trigger a failure exit code",
|
|
279
|
+
"name": "fail-severity",
|
|
280
|
+
"default": "error",
|
|
281
|
+
"hasDynamicHelp": false,
|
|
282
|
+
"multiple": false,
|
|
283
|
+
"options": [
|
|
284
|
+
"error",
|
|
285
|
+
"warn",
|
|
286
|
+
"info",
|
|
287
|
+
"hint"
|
|
288
|
+
],
|
|
289
|
+
"type": "option"
|
|
290
|
+
},
|
|
291
|
+
"save-output": {
|
|
292
|
+
"char": "s",
|
|
293
|
+
"description": "The output file name. Omitting this flag the result will be printed in the console.",
|
|
294
|
+
"name": "save-output",
|
|
295
|
+
"hasDynamicHelp": false,
|
|
296
|
+
"multiple": false,
|
|
297
|
+
"type": "option"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"hasDynamicHelp": false,
|
|
301
|
+
"hiddenAliases": [],
|
|
302
|
+
"id": "diff",
|
|
303
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
304
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
305
|
+
"pluginType": "core",
|
|
306
|
+
"strict": true,
|
|
307
|
+
"isESM": false,
|
|
308
|
+
"relativePath": [
|
|
309
|
+
"lib",
|
|
310
|
+
"apps",
|
|
311
|
+
"cli",
|
|
312
|
+
"commands",
|
|
313
|
+
"diff.js"
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"format": {
|
|
317
|
+
"aliases": [],
|
|
318
|
+
"args": {
|
|
319
|
+
"spec-file": {
|
|
320
|
+
"description": "spec path, url, or context-name",
|
|
321
|
+
"name": "spec-file",
|
|
322
|
+
"required": false
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"description": "Convert asyncapi documents from any format to yaml, yml or JSON",
|
|
326
|
+
"flags": {
|
|
327
|
+
"help": {
|
|
328
|
+
"char": "h",
|
|
329
|
+
"description": "Show CLI help.",
|
|
330
|
+
"name": "help",
|
|
331
|
+
"allowNo": false,
|
|
332
|
+
"type": "boolean"
|
|
333
|
+
},
|
|
334
|
+
"format": {
|
|
335
|
+
"char": "f",
|
|
336
|
+
"description": "Specify the format to convert to",
|
|
337
|
+
"name": "format",
|
|
338
|
+
"required": true,
|
|
339
|
+
"default": "json",
|
|
340
|
+
"hasDynamicHelp": false,
|
|
341
|
+
"multiple": false,
|
|
342
|
+
"options": [
|
|
343
|
+
"yaml",
|
|
344
|
+
"yml",
|
|
345
|
+
"json"
|
|
346
|
+
],
|
|
347
|
+
"type": "option"
|
|
348
|
+
},
|
|
349
|
+
"output": {
|
|
350
|
+
"char": "o",
|
|
351
|
+
"description": "path to the file where the result is saved",
|
|
352
|
+
"name": "output",
|
|
353
|
+
"hasDynamicHelp": false,
|
|
354
|
+
"multiple": false,
|
|
355
|
+
"type": "option"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"hasDynamicHelp": false,
|
|
359
|
+
"hiddenAliases": [],
|
|
360
|
+
"id": "format",
|
|
361
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
362
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
363
|
+
"pluginType": "core",
|
|
364
|
+
"strict": true,
|
|
365
|
+
"metricsMetadata": {},
|
|
366
|
+
"isESM": false,
|
|
367
|
+
"relativePath": [
|
|
368
|
+
"lib",
|
|
369
|
+
"apps",
|
|
370
|
+
"cli",
|
|
371
|
+
"commands",
|
|
372
|
+
"format.js"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"optimize": {
|
|
376
|
+
"aliases": [],
|
|
377
|
+
"args": {
|
|
378
|
+
"spec-file": {
|
|
379
|
+
"description": "spec path, url, or context-name",
|
|
380
|
+
"name": "spec-file",
|
|
381
|
+
"required": false
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"description": "optimize asyncapi specification file",
|
|
385
|
+
"examples": [
|
|
386
|
+
"asyncapi optimize ./asyncapi.yaml",
|
|
387
|
+
"asyncapi optimize ./asyncapi.yaml --no-tty",
|
|
388
|
+
"asyncapi optimize ./asyncapi.yaml --optimization=remove-components --optimization=reuse-components --optimization=move-all-to-components --no-tty",
|
|
389
|
+
"asyncapi optimize ./asyncapi.yaml --optimization=remove-components --output=terminal --no-tty",
|
|
390
|
+
"asyncapi optimize ./asyncapi.yaml --ignore=schema"
|
|
391
|
+
],
|
|
392
|
+
"flags": {
|
|
393
|
+
"help": {
|
|
394
|
+
"char": "h",
|
|
395
|
+
"description": "Show CLI help.",
|
|
396
|
+
"name": "help",
|
|
397
|
+
"allowNo": false,
|
|
398
|
+
"type": "boolean"
|
|
399
|
+
},
|
|
400
|
+
"optimization": {
|
|
401
|
+
"char": "p",
|
|
402
|
+
"description": "select the type of optimizations that you want to apply.",
|
|
403
|
+
"name": "optimization",
|
|
404
|
+
"default": [
|
|
405
|
+
"remove-components",
|
|
406
|
+
"reuse-components",
|
|
407
|
+
"move-duplicates-to-components",
|
|
408
|
+
"move-all-to-components"
|
|
409
|
+
],
|
|
410
|
+
"hasDynamicHelp": false,
|
|
411
|
+
"multiple": true,
|
|
412
|
+
"options": [
|
|
413
|
+
"remove-components",
|
|
414
|
+
"reuse-components",
|
|
415
|
+
"move-duplicates-to-components",
|
|
416
|
+
"move-all-to-components"
|
|
417
|
+
],
|
|
418
|
+
"type": "option"
|
|
419
|
+
},
|
|
420
|
+
"ignore": {
|
|
421
|
+
"char": "i",
|
|
422
|
+
"description": "list of components to be ignored from the optimization process",
|
|
423
|
+
"name": "ignore",
|
|
424
|
+
"default": [],
|
|
425
|
+
"hasDynamicHelp": false,
|
|
426
|
+
"multiple": true,
|
|
427
|
+
"options": [
|
|
428
|
+
"schema"
|
|
429
|
+
],
|
|
430
|
+
"type": "option"
|
|
431
|
+
},
|
|
432
|
+
"output": {
|
|
433
|
+
"char": "o",
|
|
434
|
+
"description": "select where you want the output.",
|
|
435
|
+
"name": "output",
|
|
436
|
+
"default": "terminal",
|
|
437
|
+
"hasDynamicHelp": false,
|
|
438
|
+
"multiple": false,
|
|
439
|
+
"options": [
|
|
440
|
+
"terminal",
|
|
441
|
+
"new-file",
|
|
442
|
+
"overwrite"
|
|
443
|
+
],
|
|
444
|
+
"type": "option"
|
|
445
|
+
},
|
|
446
|
+
"no-tty": {
|
|
447
|
+
"description": "do not use an interactive terminal",
|
|
448
|
+
"name": "no-tty",
|
|
449
|
+
"allowNo": false,
|
|
450
|
+
"type": "boolean"
|
|
451
|
+
},
|
|
452
|
+
"proxyHost": {
|
|
453
|
+
"description": "Name of the ProxyHost",
|
|
454
|
+
"name": "proxyHost",
|
|
455
|
+
"required": false,
|
|
456
|
+
"hasDynamicHelp": false,
|
|
457
|
+
"multiple": false,
|
|
458
|
+
"type": "option"
|
|
459
|
+
},
|
|
460
|
+
"proxyPort": {
|
|
461
|
+
"description": "Port number number for the proxyHost.",
|
|
462
|
+
"name": "proxyPort",
|
|
463
|
+
"required": false,
|
|
464
|
+
"hasDynamicHelp": false,
|
|
465
|
+
"multiple": false,
|
|
466
|
+
"type": "option"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"hasDynamicHelp": false,
|
|
470
|
+
"hiddenAliases": [],
|
|
471
|
+
"id": "optimize",
|
|
472
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
473
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
474
|
+
"pluginType": "core",
|
|
475
|
+
"strict": true,
|
|
476
|
+
"isESM": false,
|
|
477
|
+
"relativePath": [
|
|
478
|
+
"lib",
|
|
479
|
+
"apps",
|
|
480
|
+
"cli",
|
|
481
|
+
"commands",
|
|
482
|
+
"optimize.js"
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
"pretty": {
|
|
486
|
+
"aliases": [],
|
|
487
|
+
"args": {
|
|
488
|
+
"spec-file": {
|
|
489
|
+
"description": "spec path, url, or context-name",
|
|
490
|
+
"name": "spec-file",
|
|
491
|
+
"required": true
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"description": "Beautify the AsyncAPI spec file (indentation, styling) in place or output the formatted spec to a new file.",
|
|
495
|
+
"examples": [
|
|
496
|
+
"asyncapi pretty ./asyncapi.yaml",
|
|
497
|
+
"asyncapi pretty ./asyncapi.yaml --output formatted-asyncapi.yaml"
|
|
498
|
+
],
|
|
499
|
+
"flags": {
|
|
500
|
+
"output": {
|
|
501
|
+
"char": "o",
|
|
502
|
+
"description": "Output file path",
|
|
503
|
+
"name": "output",
|
|
504
|
+
"hasDynamicHelp": false,
|
|
505
|
+
"multiple": false,
|
|
506
|
+
"type": "option"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"hasDynamicHelp": false,
|
|
510
|
+
"hiddenAliases": [],
|
|
511
|
+
"id": "pretty",
|
|
512
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
513
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
514
|
+
"pluginType": "core",
|
|
515
|
+
"strict": true,
|
|
516
|
+
"isESM": false,
|
|
517
|
+
"relativePath": [
|
|
518
|
+
"lib",
|
|
519
|
+
"apps",
|
|
520
|
+
"cli",
|
|
521
|
+
"commands",
|
|
522
|
+
"pretty.js"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
"validate": {
|
|
526
|
+
"aliases": [],
|
|
527
|
+
"args": {
|
|
528
|
+
"spec-file": {
|
|
529
|
+
"description": "spec path, url, or context-name",
|
|
530
|
+
"name": "spec-file",
|
|
531
|
+
"required": false
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"description": "validate asyncapi file",
|
|
535
|
+
"flags": {
|
|
536
|
+
"help": {
|
|
537
|
+
"char": "h",
|
|
538
|
+
"description": "Show CLI help.",
|
|
539
|
+
"name": "help",
|
|
540
|
+
"allowNo": false,
|
|
541
|
+
"type": "boolean"
|
|
542
|
+
},
|
|
543
|
+
"watch": {
|
|
544
|
+
"char": "w",
|
|
545
|
+
"description": "Enable watch mode",
|
|
546
|
+
"name": "watch",
|
|
547
|
+
"allowNo": false,
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
"log-diagnostics": {
|
|
551
|
+
"description": "log validation diagnostics or not",
|
|
552
|
+
"name": "log-diagnostics",
|
|
553
|
+
"allowNo": true,
|
|
554
|
+
"type": "boolean"
|
|
555
|
+
},
|
|
556
|
+
"diagnostics-format": {
|
|
557
|
+
"description": "format to use for validation diagnostics",
|
|
558
|
+
"name": "diagnostics-format",
|
|
559
|
+
"default": "stylish",
|
|
560
|
+
"hasDynamicHelp": false,
|
|
561
|
+
"multiple": false,
|
|
562
|
+
"options": [
|
|
563
|
+
"json",
|
|
564
|
+
"stylish",
|
|
565
|
+
"junit",
|
|
566
|
+
"html",
|
|
567
|
+
"text",
|
|
568
|
+
"teamcity",
|
|
569
|
+
"pretty"
|
|
570
|
+
],
|
|
571
|
+
"type": "option"
|
|
572
|
+
},
|
|
573
|
+
"fail-severity": {
|
|
574
|
+
"description": "diagnostics of this level or above will trigger a failure exit code",
|
|
575
|
+
"name": "fail-severity",
|
|
576
|
+
"default": "error",
|
|
577
|
+
"hasDynamicHelp": false,
|
|
578
|
+
"multiple": false,
|
|
579
|
+
"options": [
|
|
580
|
+
"error",
|
|
581
|
+
"warn",
|
|
582
|
+
"info",
|
|
583
|
+
"hint"
|
|
584
|
+
],
|
|
585
|
+
"type": "option"
|
|
586
|
+
},
|
|
587
|
+
"save-output": {
|
|
588
|
+
"char": "s",
|
|
589
|
+
"description": "The output file name. Omitting this flag the result will be printed in the console.",
|
|
590
|
+
"name": "save-output",
|
|
591
|
+
"hasDynamicHelp": false,
|
|
592
|
+
"multiple": false,
|
|
593
|
+
"type": "option"
|
|
594
|
+
},
|
|
595
|
+
"score": {
|
|
596
|
+
"description": "Compute the score of the AsyncAPI document. Scoring is based on whether the document has description, license, server and/or channels.",
|
|
597
|
+
"name": "score",
|
|
598
|
+
"required": false,
|
|
599
|
+
"allowNo": false,
|
|
600
|
+
"type": "boolean"
|
|
601
|
+
},
|
|
602
|
+
"suppressWarnings": {
|
|
603
|
+
"description": "List of warning codes to suppress from the validation output.",
|
|
604
|
+
"name": "suppressWarnings",
|
|
605
|
+
"required": false,
|
|
606
|
+
"hasDynamicHelp": false,
|
|
607
|
+
"multiple": true,
|
|
608
|
+
"type": "option"
|
|
609
|
+
},
|
|
610
|
+
"suppressAllWarnings": {
|
|
611
|
+
"description": "Suppress all warnings from the validation output.",
|
|
612
|
+
"name": "suppressAllWarnings",
|
|
613
|
+
"required": false,
|
|
614
|
+
"allowNo": false,
|
|
615
|
+
"type": "boolean"
|
|
616
|
+
},
|
|
617
|
+
"proxyHost": {
|
|
618
|
+
"description": "Name of the ProxyHost",
|
|
619
|
+
"name": "proxyHost",
|
|
620
|
+
"required": false,
|
|
621
|
+
"hasDynamicHelp": false,
|
|
622
|
+
"multiple": false,
|
|
623
|
+
"type": "option"
|
|
624
|
+
},
|
|
625
|
+
"proxyPort": {
|
|
626
|
+
"description": "Port number number for the proxyHost.",
|
|
627
|
+
"name": "proxyPort",
|
|
628
|
+
"required": false,
|
|
629
|
+
"hasDynamicHelp": false,
|
|
630
|
+
"multiple": false,
|
|
631
|
+
"type": "option"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"hasDynamicHelp": false,
|
|
635
|
+
"hiddenAliases": [],
|
|
636
|
+
"id": "validate",
|
|
637
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
638
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
639
|
+
"pluginType": "core",
|
|
640
|
+
"strict": true,
|
|
641
|
+
"isESM": false,
|
|
642
|
+
"relativePath": [
|
|
643
|
+
"lib",
|
|
644
|
+
"apps",
|
|
645
|
+
"cli",
|
|
646
|
+
"commands",
|
|
647
|
+
"validate.js"
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
"config:analytics": {
|
|
651
|
+
"aliases": [],
|
|
652
|
+
"args": {},
|
|
653
|
+
"description": "Enable or disable analytics for metrics collection",
|
|
654
|
+
"flags": {
|
|
655
|
+
"help": {
|
|
656
|
+
"char": "h",
|
|
657
|
+
"description": "Show CLI help.",
|
|
658
|
+
"name": "help",
|
|
659
|
+
"allowNo": false,
|
|
660
|
+
"type": "boolean"
|
|
661
|
+
},
|
|
662
|
+
"disable": {
|
|
663
|
+
"char": "d",
|
|
664
|
+
"description": "disable analytics",
|
|
665
|
+
"name": "disable",
|
|
666
|
+
"allowNo": false,
|
|
667
|
+
"type": "boolean"
|
|
668
|
+
},
|
|
669
|
+
"enable": {
|
|
670
|
+
"char": "e",
|
|
671
|
+
"description": "enable analytics",
|
|
672
|
+
"name": "enable",
|
|
673
|
+
"allowNo": false,
|
|
674
|
+
"type": "boolean"
|
|
675
|
+
},
|
|
676
|
+
"status": {
|
|
677
|
+
"char": "s",
|
|
678
|
+
"description": "show current status of analytics",
|
|
679
|
+
"name": "status",
|
|
680
|
+
"allowNo": false,
|
|
681
|
+
"type": "boolean"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"hasDynamicHelp": false,
|
|
685
|
+
"hiddenAliases": [],
|
|
686
|
+
"id": "config:analytics",
|
|
687
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
688
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
689
|
+
"pluginType": "core",
|
|
690
|
+
"strict": true,
|
|
691
|
+
"isESM": false,
|
|
692
|
+
"relativePath": [
|
|
693
|
+
"lib",
|
|
694
|
+
"apps",
|
|
695
|
+
"cli",
|
|
696
|
+
"commands",
|
|
697
|
+
"config",
|
|
698
|
+
"analytics.js"
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
"config": {
|
|
702
|
+
"aliases": [],
|
|
703
|
+
"args": {},
|
|
704
|
+
"description": "CLI config settings",
|
|
705
|
+
"flags": {},
|
|
706
|
+
"hasDynamicHelp": false,
|
|
707
|
+
"hiddenAliases": [],
|
|
708
|
+
"id": "config",
|
|
709
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
710
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
711
|
+
"pluginType": "core",
|
|
712
|
+
"strict": true,
|
|
713
|
+
"isESM": false,
|
|
714
|
+
"relativePath": [
|
|
715
|
+
"lib",
|
|
716
|
+
"apps",
|
|
717
|
+
"cli",
|
|
718
|
+
"commands",
|
|
719
|
+
"config",
|
|
720
|
+
"index.js"
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
"config:versions": {
|
|
724
|
+
"aliases": [],
|
|
725
|
+
"args": {},
|
|
726
|
+
"description": "Show versions of AsyncAPI tools used",
|
|
727
|
+
"flags": {
|
|
728
|
+
"help": {
|
|
729
|
+
"char": "h",
|
|
730
|
+
"description": "Show CLI help.",
|
|
731
|
+
"name": "help",
|
|
732
|
+
"allowNo": false,
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"hasDynamicHelp": false,
|
|
737
|
+
"hiddenAliases": [],
|
|
738
|
+
"id": "config:versions",
|
|
739
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
740
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
741
|
+
"pluginType": "core",
|
|
742
|
+
"strict": true,
|
|
743
|
+
"isESM": false,
|
|
744
|
+
"relativePath": [
|
|
745
|
+
"lib",
|
|
746
|
+
"apps",
|
|
747
|
+
"cli",
|
|
748
|
+
"commands",
|
|
749
|
+
"config",
|
|
750
|
+
"versions.js"
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
"generate:client": {
|
|
754
|
+
"aliases": [],
|
|
755
|
+
"args": {
|
|
756
|
+
"language": {
|
|
757
|
+
"description": "The language you want the client generated for. Available target languages: dart, java, javascript, python",
|
|
758
|
+
"name": "language",
|
|
759
|
+
"required": true
|
|
760
|
+
},
|
|
761
|
+
"asyncapi": {
|
|
762
|
+
"description": "- Local path, url or context-name pointing to AsyncAPI file",
|
|
763
|
+
"name": "asyncapi",
|
|
764
|
+
"required": false
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"description": "Generates clients baked-in AsyncAPI Generator. Available for: dart, java, javascript, python. If some language is not supported or you want to improve existing client, join us at https://github.com/asyncapi/generator",
|
|
768
|
+
"examples": [
|
|
769
|
+
"asyncapi generate client javascript asyncapi.yaml --param version=1.0.0 singleFile=true --output ./docs --force-write"
|
|
770
|
+
],
|
|
771
|
+
"flags": {
|
|
772
|
+
"help": {
|
|
773
|
+
"char": "h",
|
|
774
|
+
"description": "Show CLI help.",
|
|
775
|
+
"name": "help",
|
|
776
|
+
"allowNo": false,
|
|
777
|
+
"type": "boolean"
|
|
778
|
+
},
|
|
779
|
+
"disable-hook": {
|
|
780
|
+
"char": "d",
|
|
781
|
+
"description": "Disable a specific hook type or hooks from a given hook type",
|
|
782
|
+
"name": "disable-hook",
|
|
783
|
+
"hasDynamicHelp": false,
|
|
784
|
+
"multiple": true,
|
|
785
|
+
"type": "option"
|
|
786
|
+
},
|
|
787
|
+
"no-interactive": {
|
|
788
|
+
"description": "Disable interactive mode and run with the provided flags.",
|
|
789
|
+
"name": "no-interactive",
|
|
790
|
+
"allowNo": false,
|
|
791
|
+
"type": "boolean"
|
|
792
|
+
},
|
|
793
|
+
"install": {
|
|
794
|
+
"char": "i",
|
|
795
|
+
"description": "Installs the template and its dependencies (defaults to false)",
|
|
796
|
+
"name": "install",
|
|
797
|
+
"allowNo": false,
|
|
798
|
+
"type": "boolean"
|
|
799
|
+
},
|
|
800
|
+
"debug": {
|
|
801
|
+
"description": "Enable more specific errors in the console",
|
|
802
|
+
"name": "debug",
|
|
803
|
+
"allowNo": false,
|
|
804
|
+
"type": "boolean"
|
|
805
|
+
},
|
|
806
|
+
"no-overwrite": {
|
|
807
|
+
"char": "n",
|
|
808
|
+
"description": "Glob or path of the file(s) to skip when regenerating",
|
|
809
|
+
"name": "no-overwrite",
|
|
810
|
+
"hasDynamicHelp": false,
|
|
811
|
+
"multiple": true,
|
|
812
|
+
"type": "option"
|
|
813
|
+
},
|
|
814
|
+
"output": {
|
|
815
|
+
"char": "o",
|
|
816
|
+
"description": "Directory where to put the generated files (defaults to current directory)",
|
|
817
|
+
"name": "output",
|
|
818
|
+
"hasDynamicHelp": false,
|
|
819
|
+
"multiple": false,
|
|
820
|
+
"type": "option"
|
|
821
|
+
},
|
|
822
|
+
"force-write": {
|
|
823
|
+
"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)",
|
|
824
|
+
"name": "force-write",
|
|
825
|
+
"allowNo": false,
|
|
826
|
+
"type": "boolean"
|
|
827
|
+
},
|
|
828
|
+
"watch": {
|
|
829
|
+
"char": "w",
|
|
830
|
+
"description": "Watches the template directory and the AsyncAPI document, and re-generate the files when changes occur. Ignores the output directory.",
|
|
831
|
+
"name": "watch",
|
|
832
|
+
"allowNo": false,
|
|
833
|
+
"type": "boolean"
|
|
834
|
+
},
|
|
835
|
+
"param": {
|
|
836
|
+
"char": "p",
|
|
837
|
+
"description": "Additional param to pass to templates",
|
|
838
|
+
"name": "param",
|
|
839
|
+
"hasDynamicHelp": false,
|
|
840
|
+
"multiple": true,
|
|
841
|
+
"type": "option"
|
|
842
|
+
},
|
|
843
|
+
"map-base-url": {
|
|
844
|
+
"description": "Maps all schema references from base url to local folder",
|
|
845
|
+
"name": "map-base-url",
|
|
846
|
+
"hasDynamicHelp": false,
|
|
847
|
+
"multiple": false,
|
|
848
|
+
"type": "option"
|
|
849
|
+
},
|
|
850
|
+
"registry-url": {
|
|
851
|
+
"description": "Specifies the URL of the private registry for fetching templates and dependencies",
|
|
852
|
+
"name": "registry-url",
|
|
853
|
+
"default": "https://registry.npmjs.org",
|
|
854
|
+
"hasDynamicHelp": false,
|
|
855
|
+
"multiple": false,
|
|
856
|
+
"type": "option"
|
|
857
|
+
},
|
|
858
|
+
"registry-auth": {
|
|
859
|
+
"description": "The registry username and password encoded with base64, formatted as username:password",
|
|
860
|
+
"name": "registry-auth",
|
|
861
|
+
"hasDynamicHelp": false,
|
|
862
|
+
"multiple": false,
|
|
863
|
+
"type": "option"
|
|
864
|
+
},
|
|
865
|
+
"registry-token": {
|
|
866
|
+
"description": "The npm registry authentication token, that can be passed instead of base64 encoded username and password",
|
|
867
|
+
"name": "registry-token",
|
|
868
|
+
"hasDynamicHelp": false,
|
|
869
|
+
"multiple": false,
|
|
870
|
+
"type": "option"
|
|
871
|
+
},
|
|
872
|
+
"proxyHost": {
|
|
873
|
+
"description": "Name of the ProxyHost",
|
|
874
|
+
"name": "proxyHost",
|
|
875
|
+
"required": false,
|
|
876
|
+
"hasDynamicHelp": false,
|
|
877
|
+
"multiple": false,
|
|
878
|
+
"type": "option"
|
|
879
|
+
},
|
|
880
|
+
"proxyPort": {
|
|
881
|
+
"description": "Port number number for the proxyHost.",
|
|
882
|
+
"name": "proxyPort",
|
|
883
|
+
"required": false,
|
|
884
|
+
"hasDynamicHelp": false,
|
|
885
|
+
"multiple": false,
|
|
886
|
+
"type": "option"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"hasDynamicHelp": false,
|
|
890
|
+
"hiddenAliases": [],
|
|
891
|
+
"id": "generate:client",
|
|
892
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
893
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
894
|
+
"pluginType": "core",
|
|
895
|
+
"isESM": false,
|
|
896
|
+
"relativePath": [
|
|
897
|
+
"lib",
|
|
898
|
+
"apps",
|
|
899
|
+
"cli",
|
|
900
|
+
"commands",
|
|
901
|
+
"generate",
|
|
902
|
+
"client.js"
|
|
903
|
+
]
|
|
904
|
+
},
|
|
905
|
+
"generate:fromTemplate": {
|
|
906
|
+
"aliases": [],
|
|
907
|
+
"args": {
|
|
908
|
+
"asyncapi": {
|
|
909
|
+
"description": "- Local path, url or context-name pointing to AsyncAPI file",
|
|
910
|
+
"name": "asyncapi",
|
|
911
|
+
"required": false
|
|
912
|
+
},
|
|
913
|
+
"template": {
|
|
914
|
+
"description": "- Name of the generator template like for example @asyncapi/html-template or https://github.com/asyncapi/html-template",
|
|
915
|
+
"name": "template",
|
|
916
|
+
"required": false
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
"description": "Generates whatever you want using templates compatible with AsyncAPI Generator.",
|
|
920
|
+
"examples": [
|
|
921
|
+
"asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template --param version=1.0.0 singleFile=true --output ./docs --force-write"
|
|
922
|
+
],
|
|
923
|
+
"flags": {
|
|
924
|
+
"help": {
|
|
925
|
+
"char": "h",
|
|
926
|
+
"description": "Show CLI help.",
|
|
927
|
+
"name": "help",
|
|
928
|
+
"allowNo": false,
|
|
929
|
+
"type": "boolean"
|
|
930
|
+
},
|
|
931
|
+
"disable-hook": {
|
|
932
|
+
"char": "d",
|
|
933
|
+
"description": "Disable a specific hook type or hooks from a given hook type",
|
|
934
|
+
"name": "disable-hook",
|
|
935
|
+
"hasDynamicHelp": false,
|
|
936
|
+
"multiple": true,
|
|
937
|
+
"type": "option"
|
|
938
|
+
},
|
|
939
|
+
"no-interactive": {
|
|
940
|
+
"description": "Disable interactive mode and run with the provided flags.",
|
|
941
|
+
"name": "no-interactive",
|
|
942
|
+
"allowNo": false,
|
|
943
|
+
"type": "boolean"
|
|
944
|
+
},
|
|
945
|
+
"install": {
|
|
946
|
+
"char": "i",
|
|
947
|
+
"description": "Installs the template and its dependencies (defaults to false)",
|
|
948
|
+
"name": "install",
|
|
949
|
+
"allowNo": false,
|
|
950
|
+
"type": "boolean"
|
|
951
|
+
},
|
|
952
|
+
"debug": {
|
|
953
|
+
"description": "Enable more specific errors in the console",
|
|
954
|
+
"name": "debug",
|
|
955
|
+
"allowNo": false,
|
|
956
|
+
"type": "boolean"
|
|
957
|
+
},
|
|
958
|
+
"no-overwrite": {
|
|
959
|
+
"char": "n",
|
|
960
|
+
"description": "Glob or path of the file(s) to skip when regenerating",
|
|
961
|
+
"name": "no-overwrite",
|
|
962
|
+
"hasDynamicHelp": false,
|
|
963
|
+
"multiple": true,
|
|
964
|
+
"type": "option"
|
|
965
|
+
},
|
|
966
|
+
"output": {
|
|
967
|
+
"char": "o",
|
|
968
|
+
"description": "Directory where to put the generated files (defaults to current directory)",
|
|
969
|
+
"name": "output",
|
|
970
|
+
"hasDynamicHelp": false,
|
|
971
|
+
"multiple": false,
|
|
972
|
+
"type": "option"
|
|
973
|
+
},
|
|
974
|
+
"force-write": {
|
|
975
|
+
"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)",
|
|
976
|
+
"name": "force-write",
|
|
977
|
+
"allowNo": false,
|
|
978
|
+
"type": "boolean"
|
|
979
|
+
},
|
|
980
|
+
"watch": {
|
|
981
|
+
"char": "w",
|
|
982
|
+
"description": "Watches the template directory and the AsyncAPI document, and re-generate the files when changes occur. Ignores the output directory.",
|
|
983
|
+
"name": "watch",
|
|
984
|
+
"allowNo": false,
|
|
985
|
+
"type": "boolean"
|
|
986
|
+
},
|
|
987
|
+
"param": {
|
|
988
|
+
"char": "p",
|
|
989
|
+
"description": "Additional param to pass to templates",
|
|
990
|
+
"name": "param",
|
|
991
|
+
"hasDynamicHelp": false,
|
|
992
|
+
"multiple": true,
|
|
993
|
+
"type": "option"
|
|
994
|
+
},
|
|
995
|
+
"map-base-url": {
|
|
996
|
+
"description": "Maps all schema references from base url to local folder",
|
|
997
|
+
"name": "map-base-url",
|
|
998
|
+
"hasDynamicHelp": false,
|
|
999
|
+
"multiple": false,
|
|
1000
|
+
"type": "option"
|
|
1001
|
+
},
|
|
1002
|
+
"registry-url": {
|
|
1003
|
+
"description": "Specifies the URL of the private registry for fetching templates and dependencies",
|
|
1004
|
+
"name": "registry-url",
|
|
1005
|
+
"default": "https://registry.npmjs.org",
|
|
1006
|
+
"hasDynamicHelp": false,
|
|
1007
|
+
"multiple": false,
|
|
1008
|
+
"type": "option"
|
|
1009
|
+
},
|
|
1010
|
+
"registry-auth": {
|
|
1011
|
+
"description": "The registry username and password encoded with base64, formatted as username:password",
|
|
1012
|
+
"name": "registry-auth",
|
|
1013
|
+
"hasDynamicHelp": false,
|
|
1014
|
+
"multiple": false,
|
|
1015
|
+
"type": "option"
|
|
1016
|
+
},
|
|
1017
|
+
"registry-token": {
|
|
1018
|
+
"description": "The npm registry authentication token, that can be passed instead of base64 encoded username and password",
|
|
1019
|
+
"name": "registry-token",
|
|
1020
|
+
"hasDynamicHelp": false,
|
|
1021
|
+
"multiple": false,
|
|
1022
|
+
"type": "option"
|
|
1023
|
+
},
|
|
1024
|
+
"proxyHost": {
|
|
1025
|
+
"description": "Name of the ProxyHost",
|
|
1026
|
+
"name": "proxyHost",
|
|
1027
|
+
"required": false,
|
|
1028
|
+
"hasDynamicHelp": false,
|
|
1029
|
+
"multiple": false,
|
|
1030
|
+
"type": "option"
|
|
1031
|
+
},
|
|
1032
|
+
"proxyPort": {
|
|
1033
|
+
"description": "Port number number for the proxyHost.",
|
|
1034
|
+
"name": "proxyPort",
|
|
1035
|
+
"required": false,
|
|
1036
|
+
"hasDynamicHelp": false,
|
|
1037
|
+
"multiple": false,
|
|
1038
|
+
"type": "option"
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"hasDynamicHelp": false,
|
|
1042
|
+
"hiddenAliases": [],
|
|
1043
|
+
"id": "generate:fromTemplate",
|
|
1044
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1045
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1046
|
+
"pluginType": "core",
|
|
1047
|
+
"isESM": false,
|
|
1048
|
+
"relativePath": [
|
|
1049
|
+
"lib",
|
|
1050
|
+
"apps",
|
|
1051
|
+
"cli",
|
|
1052
|
+
"commands",
|
|
1053
|
+
"generate",
|
|
1054
|
+
"fromTemplate.js"
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
"generate": {
|
|
1058
|
+
"aliases": [],
|
|
1059
|
+
"args": {},
|
|
1060
|
+
"description": "Generate typed models or other things like clients, applications or docs using AsyncAPI Generator templates.",
|
|
1061
|
+
"flags": {},
|
|
1062
|
+
"hasDynamicHelp": false,
|
|
1063
|
+
"hiddenAliases": [],
|
|
1064
|
+
"id": "generate",
|
|
1065
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1066
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1067
|
+
"pluginType": "core",
|
|
1068
|
+
"strict": true,
|
|
1069
|
+
"isESM": false,
|
|
1070
|
+
"relativePath": [
|
|
1071
|
+
"lib",
|
|
1072
|
+
"apps",
|
|
1073
|
+
"cli",
|
|
1074
|
+
"commands",
|
|
1075
|
+
"generate",
|
|
1076
|
+
"index.js"
|
|
1077
|
+
]
|
|
1078
|
+
},
|
|
1079
|
+
"generate:models": {
|
|
1080
|
+
"aliases": [],
|
|
1081
|
+
"args": {
|
|
1082
|
+
"language": {
|
|
1083
|
+
"description": "The language you want the typed models generated for.",
|
|
1084
|
+
"name": "language",
|
|
1085
|
+
"options": [
|
|
1086
|
+
"typescript",
|
|
1087
|
+
"csharp",
|
|
1088
|
+
"golang",
|
|
1089
|
+
"java",
|
|
1090
|
+
"javascript",
|
|
1091
|
+
"dart",
|
|
1092
|
+
"python",
|
|
1093
|
+
"rust",
|
|
1094
|
+
"kotlin",
|
|
1095
|
+
"php",
|
|
1096
|
+
"cplusplus",
|
|
1097
|
+
"scala"
|
|
1098
|
+
],
|
|
1099
|
+
"required": true
|
|
1100
|
+
},
|
|
1101
|
+
"file": {
|
|
1102
|
+
"description": "Path or URL to the AsyncAPI document, or context-name",
|
|
1103
|
+
"name": "file",
|
|
1104
|
+
"required": true
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"description": "Generates typed models",
|
|
1108
|
+
"flags": {
|
|
1109
|
+
"help": {
|
|
1110
|
+
"char": "h",
|
|
1111
|
+
"description": "Show CLI help.",
|
|
1112
|
+
"name": "help",
|
|
1113
|
+
"allowNo": false,
|
|
1114
|
+
"type": "boolean"
|
|
1115
|
+
},
|
|
1116
|
+
"output": {
|
|
1117
|
+
"char": "o",
|
|
1118
|
+
"description": "The output directory where the models should be written to. Omitting this flag will write the models to `stdout`.",
|
|
1119
|
+
"name": "output",
|
|
1120
|
+
"required": false,
|
|
1121
|
+
"hasDynamicHelp": false,
|
|
1122
|
+
"multiple": false,
|
|
1123
|
+
"type": "option"
|
|
1124
|
+
},
|
|
1125
|
+
"packageName": {
|
|
1126
|
+
"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`.",
|
|
1127
|
+
"name": "packageName",
|
|
1128
|
+
"required": false,
|
|
1129
|
+
"hasDynamicHelp": false,
|
|
1130
|
+
"multiple": false,
|
|
1131
|
+
"type": "option"
|
|
1132
|
+
},
|
|
1133
|
+
"namespace": {
|
|
1134
|
+
"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`.",
|
|
1135
|
+
"name": "namespace",
|
|
1136
|
+
"required": false,
|
|
1137
|
+
"hasDynamicHelp": false,
|
|
1138
|
+
"multiple": false,
|
|
1139
|
+
"type": "option"
|
|
1140
|
+
},
|
|
1141
|
+
"tsModelType": {
|
|
1142
|
+
"description": "TypeScript specific, define which type of model needs to be generated.",
|
|
1143
|
+
"name": "tsModelType",
|
|
1144
|
+
"required": false,
|
|
1145
|
+
"default": "class",
|
|
1146
|
+
"hasDynamicHelp": false,
|
|
1147
|
+
"multiple": false,
|
|
1148
|
+
"options": [
|
|
1149
|
+
"class",
|
|
1150
|
+
"interface"
|
|
1151
|
+
],
|
|
1152
|
+
"type": "option"
|
|
1153
|
+
},
|
|
1154
|
+
"tsEnumType": {
|
|
1155
|
+
"description": "TypeScript specific, define which type of enums needs to be generated.",
|
|
1156
|
+
"name": "tsEnumType",
|
|
1157
|
+
"required": false,
|
|
1158
|
+
"default": "enum",
|
|
1159
|
+
"hasDynamicHelp": false,
|
|
1160
|
+
"multiple": false,
|
|
1161
|
+
"options": [
|
|
1162
|
+
"enum",
|
|
1163
|
+
"union"
|
|
1164
|
+
],
|
|
1165
|
+
"type": "option"
|
|
1166
|
+
},
|
|
1167
|
+
"tsModuleSystem": {
|
|
1168
|
+
"description": "TypeScript specific, define the module system to be used.",
|
|
1169
|
+
"name": "tsModuleSystem",
|
|
1170
|
+
"required": false,
|
|
1171
|
+
"default": "ESM",
|
|
1172
|
+
"hasDynamicHelp": false,
|
|
1173
|
+
"multiple": false,
|
|
1174
|
+
"options": [
|
|
1175
|
+
"ESM",
|
|
1176
|
+
"CJS"
|
|
1177
|
+
],
|
|
1178
|
+
"type": "option"
|
|
1179
|
+
},
|
|
1180
|
+
"tsIncludeComments": {
|
|
1181
|
+
"description": "TypeScript specific, if enabled add comments while generating models.",
|
|
1182
|
+
"name": "tsIncludeComments",
|
|
1183
|
+
"required": false,
|
|
1184
|
+
"allowNo": false,
|
|
1185
|
+
"type": "boolean"
|
|
1186
|
+
},
|
|
1187
|
+
"tsExportType": {
|
|
1188
|
+
"description": "TypeScript specific, define which type of export needs to be generated.",
|
|
1189
|
+
"name": "tsExportType",
|
|
1190
|
+
"required": false,
|
|
1191
|
+
"default": "default",
|
|
1192
|
+
"hasDynamicHelp": false,
|
|
1193
|
+
"multiple": false,
|
|
1194
|
+
"options": [
|
|
1195
|
+
"default",
|
|
1196
|
+
"named"
|
|
1197
|
+
],
|
|
1198
|
+
"type": "option"
|
|
1199
|
+
},
|
|
1200
|
+
"tsJsonBinPack": {
|
|
1201
|
+
"description": "TypeScript specific, define basic support for serializing to and from binary with jsonbinpack.",
|
|
1202
|
+
"name": "tsJsonBinPack",
|
|
1203
|
+
"required": false,
|
|
1204
|
+
"allowNo": false,
|
|
1205
|
+
"type": "boolean"
|
|
1206
|
+
},
|
|
1207
|
+
"tsMarshalling": {
|
|
1208
|
+
"description": "TypeScript specific, generate the models with marshalling functions.",
|
|
1209
|
+
"name": "tsMarshalling",
|
|
1210
|
+
"required": false,
|
|
1211
|
+
"allowNo": false,
|
|
1212
|
+
"type": "boolean"
|
|
1213
|
+
},
|
|
1214
|
+
"tsExampleInstance": {
|
|
1215
|
+
"description": "Typescript specific, generate example of the model.",
|
|
1216
|
+
"name": "tsExampleInstance",
|
|
1217
|
+
"required": false,
|
|
1218
|
+
"allowNo": false,
|
|
1219
|
+
"type": "boolean"
|
|
1220
|
+
},
|
|
1221
|
+
"tsRawPropertyNames": {
|
|
1222
|
+
"description": "Typescript specific, generate the models using raw property names.",
|
|
1223
|
+
"name": "tsRawPropertyNames",
|
|
1224
|
+
"required": false,
|
|
1225
|
+
"allowNo": false,
|
|
1226
|
+
"type": "boolean"
|
|
1227
|
+
},
|
|
1228
|
+
"csharpAutoImplement": {
|
|
1229
|
+
"description": "C# specific, define whether to generate auto-implemented properties or not.",
|
|
1230
|
+
"name": "csharpAutoImplement",
|
|
1231
|
+
"required": false,
|
|
1232
|
+
"allowNo": false,
|
|
1233
|
+
"type": "boolean"
|
|
1234
|
+
},
|
|
1235
|
+
"csharpNewtonsoft": {
|
|
1236
|
+
"description": "C# specific, generate the models with newtonsoft serialization support",
|
|
1237
|
+
"name": "csharpNewtonsoft",
|
|
1238
|
+
"required": false,
|
|
1239
|
+
"allowNo": false,
|
|
1240
|
+
"type": "boolean"
|
|
1241
|
+
},
|
|
1242
|
+
"csharpArrayType": {
|
|
1243
|
+
"description": "C# specific, define which type of array needs to be generated.",
|
|
1244
|
+
"name": "csharpArrayType",
|
|
1245
|
+
"required": false,
|
|
1246
|
+
"default": "Array",
|
|
1247
|
+
"hasDynamicHelp": false,
|
|
1248
|
+
"multiple": false,
|
|
1249
|
+
"options": [
|
|
1250
|
+
"Array",
|
|
1251
|
+
"List"
|
|
1252
|
+
],
|
|
1253
|
+
"type": "option"
|
|
1254
|
+
},
|
|
1255
|
+
"csharpHashcode": {
|
|
1256
|
+
"description": "C# specific, generate the models with the GetHashCode method overwritten",
|
|
1257
|
+
"name": "csharpHashcode",
|
|
1258
|
+
"required": false,
|
|
1259
|
+
"allowNo": false,
|
|
1260
|
+
"type": "boolean"
|
|
1261
|
+
},
|
|
1262
|
+
"csharpEqual": {
|
|
1263
|
+
"description": "C# specific, generate the models with the Equal method overwritten",
|
|
1264
|
+
"name": "csharpEqual",
|
|
1265
|
+
"required": false,
|
|
1266
|
+
"allowNo": false,
|
|
1267
|
+
"type": "boolean"
|
|
1268
|
+
},
|
|
1269
|
+
"csharpSystemJson": {
|
|
1270
|
+
"description": "C# specific, generate the models with System.Text.Json serialization support",
|
|
1271
|
+
"name": "csharpSystemJson",
|
|
1272
|
+
"required": false,
|
|
1273
|
+
"allowNo": false,
|
|
1274
|
+
"type": "boolean"
|
|
1275
|
+
},
|
|
1276
|
+
"goIncludeComments": {
|
|
1277
|
+
"description": "Golang specific, if enabled add comments while generating models.",
|
|
1278
|
+
"name": "goIncludeComments",
|
|
1279
|
+
"required": false,
|
|
1280
|
+
"allowNo": false,
|
|
1281
|
+
"type": "boolean"
|
|
1282
|
+
},
|
|
1283
|
+
"goIncludeTags": {
|
|
1284
|
+
"description": "Golang specific, if enabled add tags while generating models.",
|
|
1285
|
+
"name": "goIncludeTags",
|
|
1286
|
+
"required": false,
|
|
1287
|
+
"allowNo": false,
|
|
1288
|
+
"type": "boolean"
|
|
1289
|
+
},
|
|
1290
|
+
"javaIncludeComments": {
|
|
1291
|
+
"description": "Java specific, if enabled add comments while generating models.",
|
|
1292
|
+
"name": "javaIncludeComments",
|
|
1293
|
+
"required": false,
|
|
1294
|
+
"allowNo": false,
|
|
1295
|
+
"type": "boolean"
|
|
1296
|
+
},
|
|
1297
|
+
"javaJackson": {
|
|
1298
|
+
"description": "Java specific, generate the models with Jackson serialization support",
|
|
1299
|
+
"name": "javaJackson",
|
|
1300
|
+
"required": false,
|
|
1301
|
+
"allowNo": false,
|
|
1302
|
+
"type": "boolean"
|
|
1303
|
+
},
|
|
1304
|
+
"javaConstraints": {
|
|
1305
|
+
"description": "Java specific, generate the models with constraints",
|
|
1306
|
+
"name": "javaConstraints",
|
|
1307
|
+
"required": false,
|
|
1308
|
+
"allowNo": false,
|
|
1309
|
+
"type": "boolean"
|
|
1310
|
+
},
|
|
1311
|
+
"javaArrayType": {
|
|
1312
|
+
"description": "Java specific, define which type of array needs to be generated.",
|
|
1313
|
+
"name": "javaArrayType",
|
|
1314
|
+
"required": false,
|
|
1315
|
+
"default": "Array",
|
|
1316
|
+
"hasDynamicHelp": false,
|
|
1317
|
+
"multiple": false,
|
|
1318
|
+
"options": [
|
|
1319
|
+
"Array",
|
|
1320
|
+
"List"
|
|
1321
|
+
],
|
|
1322
|
+
"type": "option"
|
|
1323
|
+
},
|
|
1324
|
+
"pyDantic": {
|
|
1325
|
+
"description": "Python specific, generate the Pydantic models.",
|
|
1326
|
+
"name": "pyDantic",
|
|
1327
|
+
"required": false,
|
|
1328
|
+
"allowNo": false,
|
|
1329
|
+
"type": "boolean"
|
|
1330
|
+
},
|
|
1331
|
+
"no-interactive": {
|
|
1332
|
+
"description": "Disable interactive mode and run with the provided flags.",
|
|
1333
|
+
"name": "no-interactive",
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"allowNo": false,
|
|
1336
|
+
"type": "boolean"
|
|
1337
|
+
},
|
|
1338
|
+
"log-diagnostics": {
|
|
1339
|
+
"description": "log validation diagnostics or not",
|
|
1340
|
+
"name": "log-diagnostics",
|
|
1341
|
+
"allowNo": true,
|
|
1342
|
+
"type": "boolean"
|
|
1343
|
+
},
|
|
1344
|
+
"diagnostics-format": {
|
|
1345
|
+
"description": "format to use for validation diagnostics",
|
|
1346
|
+
"name": "diagnostics-format",
|
|
1347
|
+
"default": "stylish",
|
|
1348
|
+
"hasDynamicHelp": false,
|
|
1349
|
+
"multiple": false,
|
|
1350
|
+
"options": [
|
|
1351
|
+
"json",
|
|
1352
|
+
"stylish",
|
|
1353
|
+
"junit",
|
|
1354
|
+
"html",
|
|
1355
|
+
"text",
|
|
1356
|
+
"teamcity",
|
|
1357
|
+
"pretty"
|
|
1358
|
+
],
|
|
1359
|
+
"type": "option"
|
|
1360
|
+
},
|
|
1361
|
+
"fail-severity": {
|
|
1362
|
+
"description": "diagnostics of this level or above will trigger a failure exit code",
|
|
1363
|
+
"name": "fail-severity",
|
|
1364
|
+
"default": "error",
|
|
1365
|
+
"hasDynamicHelp": false,
|
|
1366
|
+
"multiple": false,
|
|
1367
|
+
"options": [
|
|
1368
|
+
"error",
|
|
1369
|
+
"warn",
|
|
1370
|
+
"info",
|
|
1371
|
+
"hint"
|
|
1372
|
+
],
|
|
1373
|
+
"type": "option"
|
|
1374
|
+
},
|
|
1375
|
+
"save-output": {
|
|
1376
|
+
"char": "s",
|
|
1377
|
+
"description": "The output file name. Omitting this flag the result will be printed in the console.",
|
|
1378
|
+
"name": "save-output",
|
|
1379
|
+
"hasDynamicHelp": false,
|
|
1380
|
+
"multiple": false,
|
|
1381
|
+
"type": "option"
|
|
1382
|
+
},
|
|
1383
|
+
"proxyHost": {
|
|
1384
|
+
"description": "Name of the ProxyHost",
|
|
1385
|
+
"name": "proxyHost",
|
|
1386
|
+
"required": false,
|
|
1387
|
+
"hasDynamicHelp": false,
|
|
1388
|
+
"multiple": false,
|
|
1389
|
+
"type": "option"
|
|
1390
|
+
},
|
|
1391
|
+
"proxyPort": {
|
|
1392
|
+
"description": "Port number number for the proxyHost.",
|
|
1393
|
+
"name": "proxyPort",
|
|
1394
|
+
"required": false,
|
|
1395
|
+
"hasDynamicHelp": false,
|
|
1396
|
+
"multiple": false,
|
|
1397
|
+
"type": "option"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"hasDynamicHelp": false,
|
|
1401
|
+
"hiddenAliases": [],
|
|
1402
|
+
"id": "generate:models",
|
|
1403
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1404
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1405
|
+
"pluginType": "core",
|
|
1406
|
+
"strict": true,
|
|
1407
|
+
"isESM": false,
|
|
1408
|
+
"relativePath": [
|
|
1409
|
+
"lib",
|
|
1410
|
+
"apps",
|
|
1411
|
+
"cli",
|
|
1412
|
+
"commands",
|
|
1413
|
+
"generate",
|
|
1414
|
+
"models.js"
|
|
1415
|
+
]
|
|
1416
|
+
},
|
|
1417
|
+
"new:file": {
|
|
1418
|
+
"aliases": [],
|
|
1419
|
+
"args": {},
|
|
1420
|
+
"description": "Creates a new asyncapi file",
|
|
1421
|
+
"examples": [
|
|
1422
|
+
"asyncapi new\t - start creation of a file in interactive mode",
|
|
1423
|
+
"asyncapi new --file-name=my-asyncapi.yaml --example=default-example.yaml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
|
|
1424
|
+
],
|
|
1425
|
+
"flags": {
|
|
1426
|
+
"help": {
|
|
1427
|
+
"char": "h",
|
|
1428
|
+
"description": "Show CLI help.",
|
|
1429
|
+
"name": "help",
|
|
1430
|
+
"allowNo": false,
|
|
1431
|
+
"type": "boolean"
|
|
1432
|
+
},
|
|
1433
|
+
"file-name": {
|
|
1434
|
+
"char": "n",
|
|
1435
|
+
"description": "name of the file",
|
|
1436
|
+
"name": "file-name",
|
|
1437
|
+
"hasDynamicHelp": false,
|
|
1438
|
+
"multiple": false,
|
|
1439
|
+
"type": "option"
|
|
1440
|
+
},
|
|
1441
|
+
"example": {
|
|
1442
|
+
"char": "e",
|
|
1443
|
+
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - adeo-kafka-request-reply-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",
|
|
1444
|
+
"name": "example",
|
|
1445
|
+
"hasDynamicHelp": false,
|
|
1446
|
+
"multiple": false,
|
|
1447
|
+
"type": "option"
|
|
1448
|
+
},
|
|
1449
|
+
"studio": {
|
|
1450
|
+
"char": "s",
|
|
1451
|
+
"description": "open in Studio",
|
|
1452
|
+
"name": "studio",
|
|
1453
|
+
"allowNo": false,
|
|
1454
|
+
"type": "boolean"
|
|
1455
|
+
},
|
|
1456
|
+
"port": {
|
|
1457
|
+
"char": "p",
|
|
1458
|
+
"description": "port in which to start Studio",
|
|
1459
|
+
"name": "port",
|
|
1460
|
+
"hasDynamicHelp": false,
|
|
1461
|
+
"multiple": false,
|
|
1462
|
+
"type": "option"
|
|
1463
|
+
},
|
|
1464
|
+
"no-tty": {
|
|
1465
|
+
"description": "do not use an interactive terminal",
|
|
1466
|
+
"name": "no-tty",
|
|
1467
|
+
"allowNo": false,
|
|
1468
|
+
"type": "boolean"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
"hasDynamicHelp": false,
|
|
1472
|
+
"hiddenAliases": [],
|
|
1473
|
+
"id": "new:file",
|
|
1474
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1475
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1476
|
+
"pluginType": "core",
|
|
1477
|
+
"strict": true,
|
|
1478
|
+
"isESM": false,
|
|
1479
|
+
"relativePath": [
|
|
1480
|
+
"lib",
|
|
1481
|
+
"apps",
|
|
1482
|
+
"cli",
|
|
1483
|
+
"commands",
|
|
1484
|
+
"new",
|
|
1485
|
+
"file.js"
|
|
1486
|
+
]
|
|
1487
|
+
},
|
|
1488
|
+
"new": {
|
|
1489
|
+
"aliases": [],
|
|
1490
|
+
"args": {},
|
|
1491
|
+
"description": "Create a new AsyncAPI project, specification files, or templates for clients and applications.",
|
|
1492
|
+
"flags": {},
|
|
1493
|
+
"hasDynamicHelp": false,
|
|
1494
|
+
"hiddenAliases": [],
|
|
1495
|
+
"id": "new",
|
|
1496
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1497
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1498
|
+
"pluginType": "core",
|
|
1499
|
+
"strict": true,
|
|
1500
|
+
"isESM": false,
|
|
1501
|
+
"relativePath": [
|
|
1502
|
+
"lib",
|
|
1503
|
+
"apps",
|
|
1504
|
+
"cli",
|
|
1505
|
+
"commands",
|
|
1506
|
+
"new",
|
|
1507
|
+
"index.js"
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1510
|
+
"new:template": {
|
|
1511
|
+
"aliases": [],
|
|
1512
|
+
"args": {},
|
|
1513
|
+
"description": "Creates a new template",
|
|
1514
|
+
"flags": {
|
|
1515
|
+
"help": {
|
|
1516
|
+
"char": "h",
|
|
1517
|
+
"description": "Show CLI help.",
|
|
1518
|
+
"name": "help",
|
|
1519
|
+
"allowNo": false,
|
|
1520
|
+
"type": "boolean"
|
|
1521
|
+
},
|
|
1522
|
+
"name": {
|
|
1523
|
+
"char": "n",
|
|
1524
|
+
"description": "Name of the Project",
|
|
1525
|
+
"name": "name",
|
|
1526
|
+
"default": "project",
|
|
1527
|
+
"hasDynamicHelp": false,
|
|
1528
|
+
"multiple": false,
|
|
1529
|
+
"type": "option"
|
|
1530
|
+
},
|
|
1531
|
+
"template": {
|
|
1532
|
+
"char": "t",
|
|
1533
|
+
"description": "Name of the Template",
|
|
1534
|
+
"name": "template",
|
|
1535
|
+
"default": "default",
|
|
1536
|
+
"hasDynamicHelp": false,
|
|
1537
|
+
"multiple": false,
|
|
1538
|
+
"type": "option"
|
|
1539
|
+
},
|
|
1540
|
+
"file": {
|
|
1541
|
+
"char": "f",
|
|
1542
|
+
"description": "The path to the AsyncAPI file for generating a template.",
|
|
1543
|
+
"name": "file",
|
|
1544
|
+
"hasDynamicHelp": false,
|
|
1545
|
+
"multiple": false,
|
|
1546
|
+
"type": "option"
|
|
1547
|
+
},
|
|
1548
|
+
"force-write": {
|
|
1549
|
+
"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)",
|
|
1550
|
+
"name": "force-write",
|
|
1551
|
+
"allowNo": false,
|
|
1552
|
+
"type": "boolean"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
"hasDynamicHelp": false,
|
|
1556
|
+
"hiddenAliases": [],
|
|
1557
|
+
"id": "new:template",
|
|
1558
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1559
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1560
|
+
"pluginType": "core",
|
|
1561
|
+
"strict": true,
|
|
1562
|
+
"errorMessages": {},
|
|
1563
|
+
"isESM": false,
|
|
1564
|
+
"relativePath": [
|
|
1565
|
+
"lib",
|
|
1566
|
+
"apps",
|
|
1567
|
+
"cli",
|
|
1568
|
+
"commands",
|
|
1569
|
+
"new",
|
|
1570
|
+
"template.js"
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1573
|
+
"config:auth:add": {
|
|
1574
|
+
"aliases": [],
|
|
1575
|
+
"args": {
|
|
1576
|
+
"pattern": {
|
|
1577
|
+
"description": "Glob pattern for matching protected URLs (e.g. github.com/org/repo/**/*.*)",
|
|
1578
|
+
"name": "pattern",
|
|
1579
|
+
"required": true
|
|
1580
|
+
},
|
|
1581
|
+
"token": {
|
|
1582
|
+
"description": "Authentication token or environment variable reference (prefix with $, e.g. $GITHUB_TOKEN)",
|
|
1583
|
+
"name": "token",
|
|
1584
|
+
"required": true
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"description": "Add an authentication config for resolving $ref files requiring HTTP Authorization.",
|
|
1588
|
+
"flags": {
|
|
1589
|
+
"auth-type": {
|
|
1590
|
+
"char": "a",
|
|
1591
|
+
"description": "Authentication type (default is \"Bearer\")",
|
|
1592
|
+
"name": "auth-type",
|
|
1593
|
+
"hasDynamicHelp": false,
|
|
1594
|
+
"multiple": false,
|
|
1595
|
+
"type": "option"
|
|
1596
|
+
},
|
|
1597
|
+
"header": {
|
|
1598
|
+
"char": "h",
|
|
1599
|
+
"description": "Additional header in key=value format; can be used multiple times",
|
|
1600
|
+
"name": "header",
|
|
1601
|
+
"hasDynamicHelp": false,
|
|
1602
|
+
"multiple": true,
|
|
1603
|
+
"type": "option"
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
"hasDynamicHelp": false,
|
|
1607
|
+
"hiddenAliases": [],
|
|
1608
|
+
"id": "config:auth:add",
|
|
1609
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1610
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1611
|
+
"pluginType": "core",
|
|
1612
|
+
"strict": true,
|
|
1613
|
+
"isESM": false,
|
|
1614
|
+
"relativePath": [
|
|
1615
|
+
"lib",
|
|
1616
|
+
"apps",
|
|
1617
|
+
"cli",
|
|
1618
|
+
"commands",
|
|
1619
|
+
"config",
|
|
1620
|
+
"auth",
|
|
1621
|
+
"add.js"
|
|
1622
|
+
]
|
|
1623
|
+
},
|
|
1624
|
+
"start:api": {
|
|
1625
|
+
"aliases": [],
|
|
1626
|
+
"args": {},
|
|
1627
|
+
"description": "starts the AsyncAPI server API.",
|
|
1628
|
+
"flags": {
|
|
1629
|
+
"help": {
|
|
1630
|
+
"char": "h",
|
|
1631
|
+
"description": "Show CLI help.",
|
|
1632
|
+
"name": "help",
|
|
1633
|
+
"allowNo": false,
|
|
1634
|
+
"type": "boolean"
|
|
1635
|
+
},
|
|
1636
|
+
"mode": {
|
|
1637
|
+
"char": "m",
|
|
1638
|
+
"description": "mode in which to start the API",
|
|
1639
|
+
"name": "mode",
|
|
1640
|
+
"default": "production",
|
|
1641
|
+
"hasDynamicHelp": false,
|
|
1642
|
+
"multiple": false,
|
|
1643
|
+
"options": [
|
|
1644
|
+
"development",
|
|
1645
|
+
"production",
|
|
1646
|
+
"test"
|
|
1647
|
+
],
|
|
1648
|
+
"type": "option"
|
|
1649
|
+
},
|
|
1650
|
+
"port": {
|
|
1651
|
+
"char": "p",
|
|
1652
|
+
"description": "port in which to start the API",
|
|
1653
|
+
"name": "port",
|
|
1654
|
+
"hasDynamicHelp": false,
|
|
1655
|
+
"multiple": false,
|
|
1656
|
+
"type": "option"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
"hasDynamicHelp": false,
|
|
1660
|
+
"hiddenAliases": [],
|
|
1661
|
+
"id": "start:api",
|
|
1662
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1663
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1664
|
+
"pluginType": "core",
|
|
1665
|
+
"strict": true,
|
|
1666
|
+
"isESM": false,
|
|
1667
|
+
"relativePath": [
|
|
1668
|
+
"lib",
|
|
1669
|
+
"apps",
|
|
1670
|
+
"cli",
|
|
1671
|
+
"commands",
|
|
1672
|
+
"start",
|
|
1673
|
+
"api.js"
|
|
1674
|
+
]
|
|
1675
|
+
},
|
|
1676
|
+
"start": {
|
|
1677
|
+
"aliases": [],
|
|
1678
|
+
"args": {},
|
|
1679
|
+
"description": "Starts AsyncAPI-related services. Currently, it supports launching the AsyncAPI Studio",
|
|
1680
|
+
"flags": {},
|
|
1681
|
+
"hasDynamicHelp": false,
|
|
1682
|
+
"hiddenAliases": [],
|
|
1683
|
+
"id": "start",
|
|
1684
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1685
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1686
|
+
"pluginType": "core",
|
|
1687
|
+
"strict": true,
|
|
1688
|
+
"isESM": false,
|
|
1689
|
+
"relativePath": [
|
|
1690
|
+
"lib",
|
|
1691
|
+
"apps",
|
|
1692
|
+
"cli",
|
|
1693
|
+
"commands",
|
|
1694
|
+
"start",
|
|
1695
|
+
"index.js"
|
|
1696
|
+
]
|
|
1697
|
+
},
|
|
1698
|
+
"start:preview": {
|
|
1699
|
+
"aliases": [],
|
|
1700
|
+
"args": {
|
|
1701
|
+
"spec-file": {
|
|
1702
|
+
"description": "the path to the file to be opened with studio or context name",
|
|
1703
|
+
"name": "spec-file",
|
|
1704
|
+
"required": true
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
"description": "starts a new local instance of Studio in minimal state bundling all the refs of the schema file and with no editing allowed.",
|
|
1708
|
+
"flags": {
|
|
1709
|
+
"help": {
|
|
1710
|
+
"char": "h",
|
|
1711
|
+
"description": "Show CLI help.",
|
|
1712
|
+
"name": "help",
|
|
1713
|
+
"allowNo": false,
|
|
1714
|
+
"type": "boolean"
|
|
1715
|
+
},
|
|
1716
|
+
"port": {
|
|
1717
|
+
"char": "p",
|
|
1718
|
+
"description": "port in which to start Studio in the preview mode",
|
|
1719
|
+
"name": "port",
|
|
1720
|
+
"hasDynamicHelp": false,
|
|
1721
|
+
"multiple": false,
|
|
1722
|
+
"type": "option"
|
|
1723
|
+
},
|
|
1724
|
+
"base": {
|
|
1725
|
+
"char": "b",
|
|
1726
|
+
"description": "Path to the file which will act as a base. This is required when some properties need to be overwritten while bundling with the file.",
|
|
1727
|
+
"name": "base",
|
|
1728
|
+
"hasDynamicHelp": false,
|
|
1729
|
+
"multiple": false,
|
|
1730
|
+
"type": "option"
|
|
1731
|
+
},
|
|
1732
|
+
"baseDir": {
|
|
1733
|
+
"char": "d",
|
|
1734
|
+
"description": "One relative/absolute path to directory relative to which paths to AsyncAPI Documents that should be bundled will be resolved.",
|
|
1735
|
+
"name": "baseDir",
|
|
1736
|
+
"hasDynamicHelp": false,
|
|
1737
|
+
"multiple": false,
|
|
1738
|
+
"type": "option"
|
|
1739
|
+
},
|
|
1740
|
+
"xOrigin": {
|
|
1741
|
+
"char": "x",
|
|
1742
|
+
"description": "Pass this switch to generate properties \"x-origin\" that will contain historical values of dereferenced \"$ref\"s.",
|
|
1743
|
+
"name": "xOrigin",
|
|
1744
|
+
"allowNo": false,
|
|
1745
|
+
"type": "boolean"
|
|
1746
|
+
},
|
|
1747
|
+
"suppressLogs": {
|
|
1748
|
+
"char": "l",
|
|
1749
|
+
"description": "Pass this to suppress the detiled error logs.",
|
|
1750
|
+
"name": "suppressLogs",
|
|
1751
|
+
"allowNo": false,
|
|
1752
|
+
"type": "boolean"
|
|
1753
|
+
},
|
|
1754
|
+
"noBrowser": {
|
|
1755
|
+
"char": "B",
|
|
1756
|
+
"description": "Pass this to not open browser automatically upon running the command",
|
|
1757
|
+
"name": "noBrowser",
|
|
1758
|
+
"allowNo": false,
|
|
1759
|
+
"type": "boolean"
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
"hasDynamicHelp": false,
|
|
1763
|
+
"hiddenAliases": [],
|
|
1764
|
+
"id": "start:preview",
|
|
1765
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1766
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1767
|
+
"pluginType": "core",
|
|
1768
|
+
"strict": true,
|
|
1769
|
+
"isESM": false,
|
|
1770
|
+
"relativePath": [
|
|
1771
|
+
"lib",
|
|
1772
|
+
"apps",
|
|
1773
|
+
"cli",
|
|
1774
|
+
"commands",
|
|
1775
|
+
"start",
|
|
1776
|
+
"preview.js"
|
|
1777
|
+
]
|
|
1778
|
+
},
|
|
1779
|
+
"start:studio": {
|
|
1780
|
+
"aliases": [],
|
|
1781
|
+
"args": {
|
|
1782
|
+
"spec-file": {
|
|
1783
|
+
"description": "spec path, url, or context-name",
|
|
1784
|
+
"name": "spec-file",
|
|
1785
|
+
"required": false
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
"description": "starts a new local instance of Studio",
|
|
1789
|
+
"flags": {
|
|
1790
|
+
"help": {
|
|
1791
|
+
"char": "h",
|
|
1792
|
+
"description": "Show CLI help.",
|
|
1793
|
+
"name": "help",
|
|
1794
|
+
"allowNo": false,
|
|
1795
|
+
"type": "boolean"
|
|
1796
|
+
},
|
|
1797
|
+
"file": {
|
|
1798
|
+
"char": "f",
|
|
1799
|
+
"deprecated": true,
|
|
1800
|
+
"description": "path to the AsyncAPI file to link with Studio",
|
|
1801
|
+
"name": "file",
|
|
1802
|
+
"hasDynamicHelp": false,
|
|
1803
|
+
"multiple": false,
|
|
1804
|
+
"type": "option"
|
|
1805
|
+
},
|
|
1806
|
+
"port": {
|
|
1807
|
+
"char": "p",
|
|
1808
|
+
"description": "port in which to start Studio",
|
|
1809
|
+
"name": "port",
|
|
1810
|
+
"hasDynamicHelp": false,
|
|
1811
|
+
"multiple": false,
|
|
1812
|
+
"type": "option"
|
|
1813
|
+
},
|
|
1814
|
+
"no-interactive": {
|
|
1815
|
+
"description": "disable prompts for this command which asks for file path if not passed via the arguments.",
|
|
1816
|
+
"name": "no-interactive",
|
|
1817
|
+
"required": false,
|
|
1818
|
+
"allowNo": false,
|
|
1819
|
+
"type": "boolean"
|
|
1820
|
+
},
|
|
1821
|
+
"noBrowser": {
|
|
1822
|
+
"char": "B",
|
|
1823
|
+
"description": "Pass this to not open browser automatically upon running the command",
|
|
1824
|
+
"name": "noBrowser",
|
|
1825
|
+
"allowNo": false,
|
|
1826
|
+
"type": "boolean"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"hasDynamicHelp": false,
|
|
1830
|
+
"hiddenAliases": [],
|
|
1831
|
+
"id": "start:studio",
|
|
1832
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1833
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1834
|
+
"pluginType": "core",
|
|
1835
|
+
"strict": true,
|
|
1836
|
+
"isESM": false,
|
|
1837
|
+
"relativePath": [
|
|
1838
|
+
"lib",
|
|
1839
|
+
"apps",
|
|
1840
|
+
"cli",
|
|
1841
|
+
"commands",
|
|
1842
|
+
"start",
|
|
1843
|
+
"studio.js"
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
"config:context:add": {
|
|
1847
|
+
"aliases": [],
|
|
1848
|
+
"args": {
|
|
1849
|
+
"context-name": {
|
|
1850
|
+
"description": "context name",
|
|
1851
|
+
"name": "context-name",
|
|
1852
|
+
"required": true
|
|
1853
|
+
},
|
|
1854
|
+
"spec-file-path": {
|
|
1855
|
+
"description": "file path of the spec file",
|
|
1856
|
+
"name": "spec-file-path",
|
|
1857
|
+
"required": true
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
"description": "Add a context to the store",
|
|
1861
|
+
"flags": {
|
|
1862
|
+
"help": {
|
|
1863
|
+
"char": "h",
|
|
1864
|
+
"description": "Show CLI help.",
|
|
1865
|
+
"name": "help",
|
|
1866
|
+
"allowNo": false,
|
|
1867
|
+
"type": "boolean"
|
|
1868
|
+
},
|
|
1869
|
+
"set-current": {
|
|
1870
|
+
"char": "s",
|
|
1871
|
+
"description": "Set context being added as the current context",
|
|
1872
|
+
"name": "set-current",
|
|
1873
|
+
"required": false,
|
|
1874
|
+
"allowNo": false,
|
|
1875
|
+
"type": "boolean"
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
"hasDynamicHelp": false,
|
|
1879
|
+
"hiddenAliases": [],
|
|
1880
|
+
"id": "config:context:add",
|
|
1881
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1882
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1883
|
+
"pluginType": "core",
|
|
1884
|
+
"strict": true,
|
|
1885
|
+
"isESM": false,
|
|
1886
|
+
"relativePath": [
|
|
1887
|
+
"lib",
|
|
1888
|
+
"apps",
|
|
1889
|
+
"cli",
|
|
1890
|
+
"commands",
|
|
1891
|
+
"config",
|
|
1892
|
+
"context",
|
|
1893
|
+
"add.js"
|
|
1894
|
+
]
|
|
1895
|
+
},
|
|
1896
|
+
"config:context:current": {
|
|
1897
|
+
"aliases": [],
|
|
1898
|
+
"args": {},
|
|
1899
|
+
"description": "Shows the current context that is being used",
|
|
1900
|
+
"flags": {
|
|
1901
|
+
"help": {
|
|
1902
|
+
"char": "h",
|
|
1903
|
+
"description": "Show CLI help.",
|
|
1904
|
+
"name": "help",
|
|
1905
|
+
"allowNo": false,
|
|
1906
|
+
"type": "boolean"
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
"hasDynamicHelp": false,
|
|
1910
|
+
"hiddenAliases": [],
|
|
1911
|
+
"id": "config:context:current",
|
|
1912
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1913
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1914
|
+
"pluginType": "core",
|
|
1915
|
+
"strict": true,
|
|
1916
|
+
"isESM": false,
|
|
1917
|
+
"relativePath": [
|
|
1918
|
+
"lib",
|
|
1919
|
+
"apps",
|
|
1920
|
+
"cli",
|
|
1921
|
+
"commands",
|
|
1922
|
+
"config",
|
|
1923
|
+
"context",
|
|
1924
|
+
"current.js"
|
|
1925
|
+
]
|
|
1926
|
+
},
|
|
1927
|
+
"config:context:edit": {
|
|
1928
|
+
"aliases": [],
|
|
1929
|
+
"args": {
|
|
1930
|
+
"context-name": {
|
|
1931
|
+
"description": "context name",
|
|
1932
|
+
"name": "context-name",
|
|
1933
|
+
"required": true
|
|
1934
|
+
},
|
|
1935
|
+
"new-spec-file-path": {
|
|
1936
|
+
"description": "file path of the spec file",
|
|
1937
|
+
"name": "new-spec-file-path",
|
|
1938
|
+
"required": true
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
"description": "Edit a context in the store",
|
|
1942
|
+
"flags": {
|
|
1943
|
+
"help": {
|
|
1944
|
+
"char": "h",
|
|
1945
|
+
"description": "Show CLI help.",
|
|
1946
|
+
"name": "help",
|
|
1947
|
+
"allowNo": false,
|
|
1948
|
+
"type": "boolean"
|
|
1949
|
+
}
|
|
1950
|
+
},
|
|
1951
|
+
"hasDynamicHelp": false,
|
|
1952
|
+
"hiddenAliases": [],
|
|
1953
|
+
"id": "config:context:edit",
|
|
1954
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1955
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1956
|
+
"pluginType": "core",
|
|
1957
|
+
"strict": true,
|
|
1958
|
+
"isESM": false,
|
|
1959
|
+
"relativePath": [
|
|
1960
|
+
"lib",
|
|
1961
|
+
"apps",
|
|
1962
|
+
"cli",
|
|
1963
|
+
"commands",
|
|
1964
|
+
"config",
|
|
1965
|
+
"context",
|
|
1966
|
+
"edit.js"
|
|
1967
|
+
]
|
|
1968
|
+
},
|
|
1969
|
+
"config:context": {
|
|
1970
|
+
"aliases": [],
|
|
1971
|
+
"args": {},
|
|
1972
|
+
"description": "Manage short aliases for full paths to AsyncAPI documents",
|
|
1973
|
+
"flags": {},
|
|
1974
|
+
"hasDynamicHelp": false,
|
|
1975
|
+
"hiddenAliases": [],
|
|
1976
|
+
"id": "config:context",
|
|
1977
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1978
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
1979
|
+
"pluginType": "core",
|
|
1980
|
+
"strict": true,
|
|
1981
|
+
"isESM": false,
|
|
1982
|
+
"relativePath": [
|
|
1983
|
+
"lib",
|
|
1984
|
+
"apps",
|
|
1985
|
+
"cli",
|
|
1986
|
+
"commands",
|
|
1987
|
+
"config",
|
|
1988
|
+
"context",
|
|
1989
|
+
"index.js"
|
|
1990
|
+
]
|
|
1991
|
+
},
|
|
1992
|
+
"config:context:init": {
|
|
1993
|
+
"aliases": [],
|
|
1994
|
+
"args": {
|
|
1995
|
+
"context-file-path": {
|
|
1996
|
+
"description": "Specify directory in which context file should be created:\n - current directory : \u001b[94masyncapi config context init .\u001b[39m(default)\n - root of current repository : \u001b[94masyncapi config context init ./ \u001b[39m\n - user's home directory : \u001b[94masyncapi config context init ~`\u001b[39m",
|
|
1997
|
+
"name": "context-file-path",
|
|
1998
|
+
"required": false
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
2001
|
+
"description": "Initialize context",
|
|
2002
|
+
"flags": {
|
|
2003
|
+
"help": {
|
|
2004
|
+
"char": "h",
|
|
2005
|
+
"description": "Show CLI help.",
|
|
2006
|
+
"name": "help",
|
|
2007
|
+
"allowNo": false,
|
|
2008
|
+
"type": "boolean"
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
2011
|
+
"hasDynamicHelp": false,
|
|
2012
|
+
"hiddenAliases": [],
|
|
2013
|
+
"id": "config:context:init",
|
|
2014
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2015
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2016
|
+
"pluginType": "core",
|
|
2017
|
+
"strict": true,
|
|
2018
|
+
"contextFilePathMessage": "Specify directory in which context file should be created:\n - current directory : \u001b[94masyncapi config context init .\u001b[39m(default)\n - root of current repository : \u001b[94masyncapi config context init ./ \u001b[39m\n - user's home directory : \u001b[94masyncapi config context init ~`\u001b[39m",
|
|
2019
|
+
"isESM": false,
|
|
2020
|
+
"relativePath": [
|
|
2021
|
+
"lib",
|
|
2022
|
+
"apps",
|
|
2023
|
+
"cli",
|
|
2024
|
+
"commands",
|
|
2025
|
+
"config",
|
|
2026
|
+
"context",
|
|
2027
|
+
"init.js"
|
|
2028
|
+
]
|
|
2029
|
+
},
|
|
2030
|
+
"config:context:list": {
|
|
2031
|
+
"aliases": [],
|
|
2032
|
+
"args": {},
|
|
2033
|
+
"description": "List all the stored contexts in the store",
|
|
2034
|
+
"flags": {
|
|
2035
|
+
"help": {
|
|
2036
|
+
"char": "h",
|
|
2037
|
+
"description": "Show CLI help.",
|
|
2038
|
+
"name": "help",
|
|
2039
|
+
"allowNo": false,
|
|
2040
|
+
"type": "boolean"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
"hasDynamicHelp": false,
|
|
2044
|
+
"hiddenAliases": [],
|
|
2045
|
+
"id": "config:context:list",
|
|
2046
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2047
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2048
|
+
"pluginType": "core",
|
|
2049
|
+
"strict": true,
|
|
2050
|
+
"isESM": false,
|
|
2051
|
+
"relativePath": [
|
|
2052
|
+
"lib",
|
|
2053
|
+
"apps",
|
|
2054
|
+
"cli",
|
|
2055
|
+
"commands",
|
|
2056
|
+
"config",
|
|
2057
|
+
"context",
|
|
2058
|
+
"list.js"
|
|
2059
|
+
]
|
|
2060
|
+
},
|
|
2061
|
+
"config:context:remove": {
|
|
2062
|
+
"aliases": [],
|
|
2063
|
+
"args": {
|
|
2064
|
+
"context-name": {
|
|
2065
|
+
"description": "Name of the context to delete",
|
|
2066
|
+
"name": "context-name",
|
|
2067
|
+
"required": true
|
|
2068
|
+
}
|
|
2069
|
+
},
|
|
2070
|
+
"description": "Delete a context from the store",
|
|
2071
|
+
"flags": {
|
|
2072
|
+
"help": {
|
|
2073
|
+
"char": "h",
|
|
2074
|
+
"description": "Show CLI help.",
|
|
2075
|
+
"name": "help",
|
|
2076
|
+
"allowNo": false,
|
|
2077
|
+
"type": "boolean"
|
|
2078
|
+
}
|
|
2079
|
+
},
|
|
2080
|
+
"hasDynamicHelp": false,
|
|
2081
|
+
"hiddenAliases": [],
|
|
2082
|
+
"id": "config:context:remove",
|
|
2083
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2084
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2085
|
+
"pluginType": "core",
|
|
2086
|
+
"strict": true,
|
|
2087
|
+
"isESM": false,
|
|
2088
|
+
"relativePath": [
|
|
2089
|
+
"lib",
|
|
2090
|
+
"apps",
|
|
2091
|
+
"cli",
|
|
2092
|
+
"commands",
|
|
2093
|
+
"config",
|
|
2094
|
+
"context",
|
|
2095
|
+
"remove.js"
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"config:context:use": {
|
|
2099
|
+
"aliases": [],
|
|
2100
|
+
"args": {
|
|
2101
|
+
"context-name": {
|
|
2102
|
+
"description": "name of the saved context",
|
|
2103
|
+
"name": "context-name",
|
|
2104
|
+
"required": true
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"description": "Set a context as current",
|
|
2108
|
+
"flags": {
|
|
2109
|
+
"help": {
|
|
2110
|
+
"char": "h",
|
|
2111
|
+
"description": "Show CLI help.",
|
|
2112
|
+
"name": "help",
|
|
2113
|
+
"allowNo": false,
|
|
2114
|
+
"type": "boolean"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"hasDynamicHelp": false,
|
|
2118
|
+
"hiddenAliases": [],
|
|
2119
|
+
"id": "config:context:use",
|
|
2120
|
+
"pluginAlias": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2121
|
+
"pluginName": "@asyncapi-actions-test/trusted-publishing-test_asyncapi-cli",
|
|
2122
|
+
"pluginType": "core",
|
|
2123
|
+
"strict": true,
|
|
2124
|
+
"isESM": false,
|
|
2125
|
+
"relativePath": [
|
|
2126
|
+
"lib",
|
|
2127
|
+
"apps",
|
|
2128
|
+
"cli",
|
|
2129
|
+
"commands",
|
|
2130
|
+
"config",
|
|
2131
|
+
"context",
|
|
2132
|
+
"use.js"
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
"version": "4.1.3"
|
|
2137
|
+
}
|