@asyncapi/cli 1.16.1 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/bundle.d.ts +1 -1
- package/lib/commands/bundle.js +4 -10
- package/lib/commands/config/analytics.d.ts +1 -1
- package/lib/commands/config/analytics.js +6 -8
- package/lib/commands/config/context/add.d.ts +1 -1
- package/lib/commands/config/context/add.js +5 -12
- package/lib/commands/config/context/current.d.ts +1 -1
- package/lib/commands/config/context/current.js +5 -7
- package/lib/commands/config/context/edit.d.ts +1 -1
- package/lib/commands/config/context/edit.js +5 -6
- package/lib/commands/config/context/index.d.ts +1 -1
- package/lib/commands/config/context/index.js +1 -1
- package/lib/commands/config/context/init.d.ts +1 -1
- package/lib/commands/config/context/init.js +4 -5
- package/lib/commands/config/context/list.d.ts +1 -1
- package/lib/commands/config/context/list.js +5 -7
- package/lib/commands/config/context/remove.d.ts +1 -1
- package/lib/commands/config/context/remove.js +5 -6
- package/lib/commands/config/context/use.d.ts +1 -1
- package/lib/commands/config/context/use.js +5 -6
- package/lib/commands/config/index.d.ts +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/versions.d.ts +1 -1
- package/lib/commands/config/versions.js +3 -5
- package/lib/commands/convert.d.ts +1 -1
- package/lib/commands/convert.js +6 -9
- package/lib/commands/diff.d.ts +1 -1
- package/lib/commands/diff.js +14 -28
- package/lib/commands/generate/fromTemplate.d.ts +1 -1
- package/lib/commands/generate/fromTemplate.js +7 -59
- package/lib/commands/generate/index.d.ts +1 -1
- package/lib/commands/generate/index.js +1 -1
- package/lib/commands/generate/models.d.ts +1 -16
- package/lib/commands/generate/models.js +5 -120
- package/lib/commands/new/file.d.ts +1 -1
- package/lib/commands/new/file.js +5 -12
- package/lib/commands/new/glee.d.ts +2 -2
- package/lib/commands/new/glee.js +10 -26
- package/lib/commands/optimize.d.ts +1 -1
- package/lib/commands/optimize.js +5 -9
- package/lib/commands/start/index.d.ts +1 -1
- package/lib/commands/start/index.js +2 -2
- package/lib/commands/start/studio.d.ts +1 -1
- package/lib/commands/start/studio.js +7 -9
- package/lib/commands/validate.d.ts +1 -1
- package/lib/commands/validate.js +6 -6
- package/lib/{base.d.ts → core/base.d.ts} +1 -1
- package/lib/core/flags/bundle.flags.d.ts +7 -0
- package/lib/core/flags/bundle.flags.js +14 -0
- package/lib/core/flags/config/analytics.flags.d.ts +6 -0
- package/lib/core/flags/config/analytics.flags.js +13 -0
- package/lib/core/flags/config/context.flags.d.ts +4 -0
- package/lib/core/flags/config/context.flags.js +16 -0
- package/lib/core/flags/convert.flags.d.ts +5 -0
- package/lib/core/flags/convert.flags.js +12 -0
- package/lib/core/flags/diff.flags.d.ts +12 -0
- package/lib/core/flags/diff.flags.js +29 -0
- package/lib/core/flags/generate/fromTemplate.flags.d.ts +16 -0
- package/lib/core/flags/generate/fromTemplate.flags.js +61 -0
- package/lib/core/flags/generate/models.flags.d.ts +43 -0
- package/lib/core/flags/generate/models.flags.js +125 -0
- package/lib/{flags.d.ts → core/flags/global.flags.d.ts} +3 -0
- package/lib/{flags.js → core/flags/global.flags.js} +7 -1
- package/lib/core/flags/new/file.flags.d.ts +8 -0
- package/lib/core/flags/new/file.flags.js +15 -0
- package/lib/core/flags/new/glee.flags.d.ts +7 -0
- package/lib/core/flags/new/glee.flags.js +28 -0
- package/lib/core/flags/optimize.flags.d.ts +17 -0
- package/lib/core/flags/optimize.flags.js +26 -0
- package/lib/core/flags/start/studio.flags.d.ts +5 -0
- package/lib/core/flags/start/studio.flags.js +12 -0
- package/lib/core/flags/validate.flags.d.ts +7 -0
- package/lib/core/flags/validate.flags.js +10 -0
- package/oclif.manifest.json +2 -2
- package/package.json +1 -1
- /package/lib/{base.js → core/base.js} +0 -0
- /package/lib/{errors → core/errors}/context-error.d.ts +0 -0
- /package/lib/{errors → core/errors}/context-error.js +0 -0
- /package/lib/{errors → core/errors}/diff-error.d.ts +0 -0
- /package/lib/{errors → core/errors}/diff-error.js +0 -0
- /package/lib/{errors → core/errors}/generator-error.d.ts +0 -0
- /package/lib/{errors → core/errors}/generator-error.js +0 -0
- /package/lib/{errors → core/errors}/specification-file.d.ts +0 -0
- /package/lib/{errors → core/errors}/specification-file.js +0 -0
- /package/lib/{errors → core/errors}/validation-error.d.ts +0 -0
- /package/lib/{errors → core/errors}/validation-error.js +0 -0
- /package/lib/{globals.d.ts → core/globals.d.ts} +0 -0
- /package/lib/{globals.js → core/globals.js} +0 -0
- /package/lib/{hooks → core/hooks}/command_not_found/myhook.d.ts +0 -0
- /package/lib/{hooks → core/hooks}/command_not_found/myhook.js +0 -0
- /package/lib/{models → core/models}/Context.d.ts +0 -0
- /package/lib/{models → core/models}/Context.js +0 -0
- /package/lib/{models → core/models}/SpecificationFile.d.ts +0 -0
- /package/lib/{models → core/models}/SpecificationFile.js +0 -0
- /package/lib/{models → core/models}/Studio.d.ts +0 -0
- /package/lib/{models → core/models}/Studio.js +0 -0
- /package/lib/{parser.d.ts → core/parser.d.ts} +0 -0
- /package/lib/{parser.js → core/parser.js} +0 -0
- /package/lib/{utils → core/utils}/generator.d.ts +0 -0
- /package/lib/{utils → core/utils}/generator.js +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fromTemplateFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const global_flags_1 = require("../global.flags");
|
|
6
|
+
const fromTemplateFlags = () => {
|
|
7
|
+
return {
|
|
8
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
9
|
+
'disable-hook': core_1.Flags.string({
|
|
10
|
+
char: 'd',
|
|
11
|
+
description: 'Disable a specific hook type or hooks from a given hook type',
|
|
12
|
+
multiple: true
|
|
13
|
+
}),
|
|
14
|
+
'no-interactive': core_1.Flags.boolean({
|
|
15
|
+
description: 'Disable interactive mode and run with the provided flags.',
|
|
16
|
+
required: false,
|
|
17
|
+
default: false,
|
|
18
|
+
}),
|
|
19
|
+
install: core_1.Flags.boolean({
|
|
20
|
+
char: 'i',
|
|
21
|
+
default: false,
|
|
22
|
+
description: 'Installs the template and its dependencies (defaults to false)'
|
|
23
|
+
}),
|
|
24
|
+
debug: core_1.Flags.boolean({
|
|
25
|
+
description: 'Enable more specific errors in the console'
|
|
26
|
+
}),
|
|
27
|
+
'no-overwrite': core_1.Flags.string({
|
|
28
|
+
char: 'n',
|
|
29
|
+
multiple: true,
|
|
30
|
+
description: 'Glob or path of the file(s) to skip when regenerating'
|
|
31
|
+
}),
|
|
32
|
+
output: core_1.Flags.string({
|
|
33
|
+
char: 'o',
|
|
34
|
+
description: 'Directory where to put the generated files (defaults to current directory)',
|
|
35
|
+
}),
|
|
36
|
+
'force-write': core_1.Flags.boolean({
|
|
37
|
+
default: false,
|
|
38
|
+
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)'
|
|
39
|
+
}),
|
|
40
|
+
watch: (0, global_flags_1.watchFlag)('Watches the template directory and the AsyncAPI document, and re-generate the files when changes occur. Ignores the output directory.'),
|
|
41
|
+
param: core_1.Flags.string({
|
|
42
|
+
char: 'p',
|
|
43
|
+
description: 'Additional param to pass to templates',
|
|
44
|
+
multiple: true
|
|
45
|
+
}),
|
|
46
|
+
'map-base-url': core_1.Flags.string({
|
|
47
|
+
description: 'Maps all schema references from base url to local folder'
|
|
48
|
+
}),
|
|
49
|
+
'registry-url': core_1.Flags.string({
|
|
50
|
+
default: 'https://registry.npmjs.org',
|
|
51
|
+
description: 'Specifies the URL of the private registry for fetching templates and dependencies'
|
|
52
|
+
}),
|
|
53
|
+
'registry-auth': core_1.Flags.string({
|
|
54
|
+
description: 'The registry username and password encoded with base64, formatted as username:password'
|
|
55
|
+
}),
|
|
56
|
+
'registry-token': core_1.Flags.string({
|
|
57
|
+
description: 'The npm registry authentication token, that can be passed instead of base64 encoded username and password'
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
exports.fromTemplateFlags = fromTemplateFlags;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const modelsFlags: () => {
|
|
2
|
+
'log-diagnostics': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
3
|
+
'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
|
+
'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
6
|
+
'no-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
/**
|
|
9
|
+
* TypeScript specific options
|
|
10
|
+
*/
|
|
11
|
+
tsModelType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
tsEnumType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
tsModuleSystem: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
|
+
tsIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
tsExportType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
tsJsonBinPack: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
tsMarshalling: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
tsExampleInstance: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
+
tsRawPropertyNames: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Go and Java specific package name to use for the generated models
|
|
22
|
+
*/
|
|
23
|
+
packageName: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
24
|
+
/**
|
|
25
|
+
* Java specific options
|
|
26
|
+
*/
|
|
27
|
+
javaIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
28
|
+
javaJackson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
29
|
+
javaConstraints: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* C++ and C# and PHP specific namespace to use for the generated models
|
|
32
|
+
*/
|
|
33
|
+
namespace: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
34
|
+
/**
|
|
35
|
+
* C# specific options
|
|
36
|
+
*/
|
|
37
|
+
csharpAutoImplement: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
38
|
+
csharpNewtonsoft: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
39
|
+
csharpArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
40
|
+
csharpHashcode: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
41
|
+
csharpEqual: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
42
|
+
csharpSystemJson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelsFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const parser_1 = require("../../parser");
|
|
6
|
+
const modelsFlags = () => {
|
|
7
|
+
return Object.assign({ help: core_1.Flags.help({ char: 'h' }), 'no-interactive': core_1.Flags.boolean({
|
|
8
|
+
description: 'Disable interactive mode and run with the provided flags.',
|
|
9
|
+
required: false,
|
|
10
|
+
default: false,
|
|
11
|
+
}), output: core_1.Flags.string({
|
|
12
|
+
char: 'o',
|
|
13
|
+
description: 'The output directory where the models should be written to. Omitting this flag will write the models to `stdout`.',
|
|
14
|
+
required: false
|
|
15
|
+
}),
|
|
16
|
+
/**
|
|
17
|
+
* TypeScript specific options
|
|
18
|
+
*/
|
|
19
|
+
tsModelType: core_1.Flags.string({
|
|
20
|
+
type: 'option',
|
|
21
|
+
options: ['class', 'interface'],
|
|
22
|
+
description: 'TypeScript specific, define which type of model needs to be generated.',
|
|
23
|
+
required: false,
|
|
24
|
+
default: 'class',
|
|
25
|
+
}), tsEnumType: core_1.Flags.string({
|
|
26
|
+
type: 'option',
|
|
27
|
+
options: ['enum', 'union'],
|
|
28
|
+
description: 'TypeScript specific, define which type of enums needs to be generated.',
|
|
29
|
+
required: false,
|
|
30
|
+
default: 'enum',
|
|
31
|
+
}), tsModuleSystem: core_1.Flags.string({
|
|
32
|
+
type: 'option',
|
|
33
|
+
options: ['ESM', 'CJS'],
|
|
34
|
+
description: 'TypeScript specific, define the module system to be used.',
|
|
35
|
+
required: false,
|
|
36
|
+
default: 'ESM',
|
|
37
|
+
}), tsIncludeComments: core_1.Flags.boolean({
|
|
38
|
+
description: 'TypeScript specific, if enabled add comments while generating models.',
|
|
39
|
+
required: false,
|
|
40
|
+
default: false,
|
|
41
|
+
}), tsExportType: core_1.Flags.string({
|
|
42
|
+
type: 'option',
|
|
43
|
+
options: ['default', 'named'],
|
|
44
|
+
description: 'TypeScript specific, define which type of export needs to be generated.',
|
|
45
|
+
required: false,
|
|
46
|
+
default: 'default',
|
|
47
|
+
}), tsJsonBinPack: core_1.Flags.boolean({
|
|
48
|
+
description: 'TypeScript specific, define basic support for serializing to and from binary with jsonbinpack.',
|
|
49
|
+
required: false,
|
|
50
|
+
default: false,
|
|
51
|
+
}), tsMarshalling: core_1.Flags.boolean({
|
|
52
|
+
description: 'TypeScript specific, generate the models with marshalling functions.',
|
|
53
|
+
required: false,
|
|
54
|
+
default: false,
|
|
55
|
+
}), tsExampleInstance: core_1.Flags.boolean({
|
|
56
|
+
description: 'Typescript specific, generate example of the model',
|
|
57
|
+
required: false,
|
|
58
|
+
default: false,
|
|
59
|
+
}), tsRawPropertyNames: core_1.Flags.boolean({
|
|
60
|
+
description: 'Typescript specific, generate the models using raw property names.',
|
|
61
|
+
required: false,
|
|
62
|
+
default: false,
|
|
63
|
+
}),
|
|
64
|
+
/**
|
|
65
|
+
* Go and Java specific package name to use for the generated models
|
|
66
|
+
*/
|
|
67
|
+
packageName: core_1.Flags.string({
|
|
68
|
+
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`.',
|
|
69
|
+
required: false
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* Java specific options
|
|
73
|
+
*/
|
|
74
|
+
javaIncludeComments: core_1.Flags.boolean({
|
|
75
|
+
description: 'Java specific, if enabled add comments while generating models.',
|
|
76
|
+
required: false,
|
|
77
|
+
default: false
|
|
78
|
+
}), javaJackson: core_1.Flags.boolean({
|
|
79
|
+
description: 'Java specific, generate the models with Jackson serialization support',
|
|
80
|
+
required: false,
|
|
81
|
+
default: false
|
|
82
|
+
}), javaConstraints: core_1.Flags.boolean({
|
|
83
|
+
description: 'Java specific, generate the models with constraints',
|
|
84
|
+
required: false,
|
|
85
|
+
default: false
|
|
86
|
+
}),
|
|
87
|
+
/**
|
|
88
|
+
* C++ and C# and PHP specific namespace to use for the generated models
|
|
89
|
+
*/
|
|
90
|
+
namespace: core_1.Flags.string({
|
|
91
|
+
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`.',
|
|
92
|
+
required: false
|
|
93
|
+
}),
|
|
94
|
+
/**
|
|
95
|
+
* C# specific options
|
|
96
|
+
*/
|
|
97
|
+
csharpAutoImplement: core_1.Flags.boolean({
|
|
98
|
+
description: 'C# specific, define whether to generate auto-implemented properties or not.',
|
|
99
|
+
required: false,
|
|
100
|
+
default: false
|
|
101
|
+
}), csharpNewtonsoft: core_1.Flags.boolean({
|
|
102
|
+
description: 'C# specific, generate the models with newtonsoft serialization support',
|
|
103
|
+
required: false,
|
|
104
|
+
default: false
|
|
105
|
+
}), csharpArrayType: core_1.Flags.string({
|
|
106
|
+
type: 'option',
|
|
107
|
+
description: 'C# specific, define which type of array needs to be generated.',
|
|
108
|
+
options: ['Array', 'List'],
|
|
109
|
+
required: false,
|
|
110
|
+
default: 'Array'
|
|
111
|
+
}), csharpHashcode: core_1.Flags.boolean({
|
|
112
|
+
description: 'C# specific, generate the models with the GetHashCode method overwritten',
|
|
113
|
+
required: false,
|
|
114
|
+
default: false
|
|
115
|
+
}), csharpEqual: core_1.Flags.boolean({
|
|
116
|
+
description: 'C# specific, generate the models with the Equal method overwritten',
|
|
117
|
+
required: false,
|
|
118
|
+
default: false
|
|
119
|
+
}), csharpSystemJson: core_1.Flags.boolean({
|
|
120
|
+
description: 'C# specific, generate the models with System.Text.Json serialization support',
|
|
121
|
+
required: false,
|
|
122
|
+
default: false
|
|
123
|
+
}) }, (0, parser_1.validationFlags)({ logDiagnostics: false }));
|
|
124
|
+
};
|
|
125
|
+
exports.modelsFlags = modelsFlags;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.watchFlag = void 0;
|
|
3
|
+
exports.helpFlag = exports.watchFlag = void 0;
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const watchFlag = (description) => {
|
|
6
6
|
return core_1.Flags.boolean({
|
|
@@ -10,3 +10,9 @@ const watchFlag = (description) => {
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
exports.watchFlag = watchFlag;
|
|
13
|
+
const helpFlag = () => {
|
|
14
|
+
return {
|
|
15
|
+
help: core_1.Flags.help({ char: 'h' })
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
exports.helpFlag = helpFlag;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const fileFlags: (exampleFlagDescription: string) => {
|
|
2
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
3
|
+
'file-name': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
|
+
example: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
|
+
studio: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
port: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
'no-tty': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const fileFlags = (exampleFlagDescription) => {
|
|
6
|
+
return {
|
|
7
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
8
|
+
'file-name': core_1.Flags.string({ char: 'n', description: 'name of the file' }),
|
|
9
|
+
example: core_1.Flags.string({ char: 'e', description: exampleFlagDescription }),
|
|
10
|
+
studio: core_1.Flags.boolean({ char: 's', description: 'open in Studio' }),
|
|
11
|
+
port: core_1.Flags.integer({ char: 'p', description: 'port in which to start Studio' }),
|
|
12
|
+
'no-tty': core_1.Flags.boolean({ description: 'do not use an interactive terminal' }),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.fileFlags = fileFlags;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const gleeFlags: () => {
|
|
2
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
3
|
+
name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
|
+
template: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
|
+
file: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
|
+
'force-write': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gleeFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const gleeFlags = () => {
|
|
6
|
+
return {
|
|
7
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
8
|
+
name: core_1.Flags.string({
|
|
9
|
+
char: 'n',
|
|
10
|
+
description: 'Name of the Project',
|
|
11
|
+
default: 'project',
|
|
12
|
+
}),
|
|
13
|
+
template: core_1.Flags.string({
|
|
14
|
+
char: 't',
|
|
15
|
+
description: 'Name of the Template',
|
|
16
|
+
default: 'default',
|
|
17
|
+
}),
|
|
18
|
+
file: core_1.Flags.string({
|
|
19
|
+
char: 'f',
|
|
20
|
+
description: 'The path to the AsyncAPI file for generating a Glee project.',
|
|
21
|
+
}),
|
|
22
|
+
'force-write': core_1.Flags.boolean({
|
|
23
|
+
default: false,
|
|
24
|
+
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)',
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
exports.gleeFlags = gleeFlags;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum Optimizations {
|
|
2
|
+
REMOVE_COMPONENTS = "remove-components",
|
|
3
|
+
REUSE_COMPONENTS = "reuse-components",
|
|
4
|
+
MOVE_DUPLICATES_TO_COMPONENTS = "move-duplicates-to-components",
|
|
5
|
+
MOVE_ALL_TO_COMPONENTS = "move-all-to-components"
|
|
6
|
+
}
|
|
7
|
+
export declare enum Outputs {
|
|
8
|
+
TERMINAL = "terminal",
|
|
9
|
+
NEW_FILE = "new-file",
|
|
10
|
+
OVERWRITE = "overwrite"
|
|
11
|
+
}
|
|
12
|
+
export declare const optimizeFlags: () => {
|
|
13
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
14
|
+
optimization: import("@oclif/core/lib/interfaces").OptionFlag<string[], import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
'no-tty': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optimizeFlags = exports.Outputs = exports.Optimizations = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
var Optimizations;
|
|
6
|
+
(function (Optimizations) {
|
|
7
|
+
Optimizations["REMOVE_COMPONENTS"] = "remove-components";
|
|
8
|
+
Optimizations["REUSE_COMPONENTS"] = "reuse-components";
|
|
9
|
+
Optimizations["MOVE_DUPLICATES_TO_COMPONENTS"] = "move-duplicates-to-components";
|
|
10
|
+
Optimizations["MOVE_ALL_TO_COMPONENTS"] = "move-all-to-components";
|
|
11
|
+
})(Optimizations = exports.Optimizations || (exports.Optimizations = {}));
|
|
12
|
+
var Outputs;
|
|
13
|
+
(function (Outputs) {
|
|
14
|
+
Outputs["TERMINAL"] = "terminal";
|
|
15
|
+
Outputs["NEW_FILE"] = "new-file";
|
|
16
|
+
Outputs["OVERWRITE"] = "overwrite";
|
|
17
|
+
})(Outputs = exports.Outputs || (exports.Outputs = {}));
|
|
18
|
+
const optimizeFlags = () => {
|
|
19
|
+
return {
|
|
20
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
21
|
+
optimization: core_1.Flags.string({ char: 'p', default: Object.values(Optimizations), options: Object.values(Optimizations), multiple: true, description: 'select the type of optimizations that you want to apply.' }),
|
|
22
|
+
output: core_1.Flags.string({ char: 'o', default: Outputs.TERMINAL, options: Object.values(Outputs), description: 'select where you want the output.' }),
|
|
23
|
+
'no-tty': core_1.Flags.boolean({ description: 'do not use an interactive terminal', default: false }),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.optimizeFlags = optimizeFlags;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const studioFlags: () => {
|
|
2
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
3
|
+
file: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
|
+
port: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.studioFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const studioFlags = () => {
|
|
6
|
+
return {
|
|
7
|
+
help: core_1.Flags.help({ char: 'h' }),
|
|
8
|
+
file: core_1.Flags.string({ char: 'f', description: 'path to the AsyncAPI file to link with Studio' }),
|
|
9
|
+
port: core_1.Flags.integer({ char: 'p', description: 'port in which to start Studio' }),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.studioFlags = studioFlags;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const validateFlags: () => {
|
|
2
|
+
'log-diagnostics': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
3
|
+
'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
4
|
+
'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
5
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
6
|
+
watch: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateFlags = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const parser_1 = require("../parser");
|
|
6
|
+
const global_flags_1 = require("./global.flags");
|
|
7
|
+
const validateFlags = () => {
|
|
8
|
+
return Object.assign({ help: core_1.Flags.help({ char: 'h' }), watch: (0, global_flags_1.watchFlag)() }, (0, parser_1.validationFlags)());
|
|
9
|
+
};
|
|
10
|
+
exports.validateFlags = validateFlags;
|
package/oclif.manifest.json
CHANGED
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
"start": {
|
|
1142
1142
|
"aliases": [],
|
|
1143
1143
|
"args": {},
|
|
1144
|
-
"description": "
|
|
1144
|
+
"description": "",
|
|
1145
1145
|
"flags": {},
|
|
1146
1146
|
"hasDynamicHelp": false,
|
|
1147
1147
|
"hiddenAliases": [],
|
|
@@ -1476,5 +1476,5 @@
|
|
|
1476
1476
|
]
|
|
1477
1477
|
}
|
|
1478
1478
|
},
|
|
1479
|
-
"version": "1.
|
|
1479
|
+
"version": "1.18.0"
|
|
1480
1480
|
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|