bdy 1.26.3-master → 1.26.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/distTs/package.json +1 -1
- package/distTs/src/command/yaml/agent.js +13 -0
- package/distTs/src/command/yaml/customAction.js +13 -0
- package/distTs/src/command/yaml/distro.js +13 -0
- package/distTs/src/command/yaml/documentType.js +64 -0
- package/distTs/src/command/yaml/domain.js +13 -0
- package/distTs/src/command/yaml/environment.js +14 -0
- package/distTs/src/command/yaml/rooted.js +48 -0
- package/distTs/src/command/yaml/sandbox.js +13 -0
- package/distTs/src/command/yaml/targets/info.js +84 -0
- package/distTs/src/command/yaml/targets/list.js +60 -0
- package/distTs/src/command/yaml/targets/schema.js +29 -0
- package/distTs/src/command/yaml/targets.js +15 -0
- package/package.json +1 -1
package/distTs/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'agent',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_AGENT,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_AGENT,
|
|
10
|
+
document: 'agents',
|
|
11
|
+
scope: schemaUtils_1.agentsScope,
|
|
12
|
+
title: texts_1.TXT_YAML_AGENT_PROPERTIES,
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'custom-action',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_CUSTOM_ACTION,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_CUSTOM_ACTION,
|
|
10
|
+
document: 'customActions',
|
|
11
|
+
scope: schemaUtils_1.customActionsScope,
|
|
12
|
+
title: texts_1.TXT_YAML_CUSTOM_ACTION_PROPERTIES,
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'distro',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_DISTRO,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_DISTRO,
|
|
10
|
+
document: 'distributions',
|
|
11
|
+
scope: schemaUtils_1.distributionsScope,
|
|
12
|
+
title: texts_1.TXT_YAML_DISTRO_PROPERTIES,
|
|
13
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.YAML_TYPES = void 0;
|
|
4
|
+
exports.identifierOf = identifierOf;
|
|
5
|
+
exports.detectYamlType = detectYamlType;
|
|
6
|
+
exports.YAML_TYPES = {
|
|
7
|
+
pipeline: 'pipelines',
|
|
8
|
+
'custom-action': 'customActions',
|
|
9
|
+
environment: 'environments',
|
|
10
|
+
target: 'targets',
|
|
11
|
+
sandbox: 'sandboxes',
|
|
12
|
+
agent: 'agents',
|
|
13
|
+
domain: 'domains',
|
|
14
|
+
distro: 'distributions',
|
|
15
|
+
};
|
|
16
|
+
// `agent` before `target`: an agent entry has a `target` switch of its own.
|
|
17
|
+
const BY_IDENTIFIER = [
|
|
18
|
+
['pipeline', 'pipeline'],
|
|
19
|
+
['environment', 'environment'],
|
|
20
|
+
['sandbox', 'sandbox'],
|
|
21
|
+
['distribution', 'distro'],
|
|
22
|
+
['agent', 'agent'],
|
|
23
|
+
['target', 'target'],
|
|
24
|
+
];
|
|
25
|
+
function identifierOf(type) {
|
|
26
|
+
return BY_IDENTIFIER.find(([, owner]) => owner === type)?.[0];
|
|
27
|
+
}
|
|
28
|
+
function isObject(value) {
|
|
29
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
30
|
+
}
|
|
31
|
+
function typeOfEntry(entry) {
|
|
32
|
+
const found = BY_IDENTIFIER.find(([key]) => Object.hasOwn(entry, key));
|
|
33
|
+
if (!found)
|
|
34
|
+
return undefined;
|
|
35
|
+
const isSwitch = typeof entry.target === 'boolean' || entry.target === 'on' || entry.target === 'off';
|
|
36
|
+
return found[1] === 'target' && !Object.hasOwn(entry, 'type') && isSwitch ? 'agent' : found[1];
|
|
37
|
+
}
|
|
38
|
+
function typeOfContent(content) {
|
|
39
|
+
let parsed;
|
|
40
|
+
try {
|
|
41
|
+
parsed = require('yaml').parse(content);
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (Array.isArray(parsed)) {
|
|
47
|
+
for (const item of parsed) {
|
|
48
|
+
const type = isObject(item) ? typeOfEntry(item) : undefined;
|
|
49
|
+
if (type)
|
|
50
|
+
return type;
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (!isObject(parsed))
|
|
55
|
+
return undefined;
|
|
56
|
+
const zones = Object.values(parsed);
|
|
57
|
+
if (zones.length > 0 && zones.every((zone) => isObject(zone) && Object.hasOwn(zone, 'records'))) {
|
|
58
|
+
return 'domain';
|
|
59
|
+
}
|
|
60
|
+
return typeOfEntry(parsed);
|
|
61
|
+
}
|
|
62
|
+
function detectYamlType(content) {
|
|
63
|
+
return content === undefined ? undefined : typeOfContent(content);
|
|
64
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'domain',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_DOMAIN,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_DOMAIN,
|
|
10
|
+
document: 'domains',
|
|
11
|
+
scope: schemaUtils_1.domainsScope,
|
|
12
|
+
title: texts_1.TXT_YAML_DOMAIN_PROPERTIES,
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'environment',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_ENVIRONMENT,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_ENVIRONMENT,
|
|
10
|
+
document: 'environments',
|
|
11
|
+
scope: schemaUtils_1.environmentsScope,
|
|
12
|
+
title: texts_1.TXT_YAML_ENVIRONMENT_PROPERTIES,
|
|
13
|
+
typesHint: texts_1.TXT_YAML_ENVIRONMENT_TARGET_FIELDS,
|
|
14
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.rootedYamlCommand = rootedYamlCommand;
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
const output_1 = __importDefault(require("../../output"));
|
|
9
|
+
const texts_1 = require("../../texts");
|
|
10
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
11
|
+
const render_1 = require("./render");
|
|
12
|
+
function rootedYamlCommand({ name, description, examples, document, scope, title, typesHint, }) {
|
|
13
|
+
const command = (0, utils_1.newCommand)(name, description, { requiredScopes: [], examples });
|
|
14
|
+
command.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
15
|
+
command.action(async (options) => {
|
|
16
|
+
await (0, schemaUtils_1.ensureYamlSchema)(document);
|
|
17
|
+
const root = await scope().root();
|
|
18
|
+
const properties = root ? await scope().properties(root.name) : [];
|
|
19
|
+
const types = root?.types ?? {};
|
|
20
|
+
const rootExamples = (root?.examples ?? []);
|
|
21
|
+
if (options.format === 'json') {
|
|
22
|
+
output_1.default.json({
|
|
23
|
+
properties: (0, render_1.propertiesJson)(properties),
|
|
24
|
+
required: properties.filter((p) => p.required).map((p) => p.name),
|
|
25
|
+
types: (0, render_1.typesJson)(types),
|
|
26
|
+
examples: rootExamples,
|
|
27
|
+
});
|
|
28
|
+
output_1.default.exitNormal();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
output_1.default.blue(title);
|
|
32
|
+
output_1.default.normal('');
|
|
33
|
+
(0, render_1.outputProperties)(properties);
|
|
34
|
+
if (Object.keys(types).length > 0) {
|
|
35
|
+
output_1.default.normal('');
|
|
36
|
+
output_1.default.blue(texts_1.TXT_YAML_TYPES);
|
|
37
|
+
if (typesHint)
|
|
38
|
+
output_1.default.muted(typesHint);
|
|
39
|
+
(0, render_1.outputTypes)(types);
|
|
40
|
+
}
|
|
41
|
+
if (rootExamples.length > 0) {
|
|
42
|
+
output_1.default.normal('');
|
|
43
|
+
(0, render_1.outputExamples)(rootExamples);
|
|
44
|
+
}
|
|
45
|
+
output_1.default.exitNormal();
|
|
46
|
+
});
|
|
47
|
+
return command;
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const texts_1 = require("../../texts");
|
|
4
|
+
const schemaUtils_1 = require("./schemaUtils");
|
|
5
|
+
const rooted_1 = require("./rooted");
|
|
6
|
+
exports.default = (0, rooted_1.rootedYamlCommand)({
|
|
7
|
+
name: 'sandbox',
|
|
8
|
+
description: texts_1.DESC_COMMAND_YAML_SANDBOX,
|
|
9
|
+
examples: texts_1.EXAMPLE_YAML_SANDBOX,
|
|
10
|
+
document: 'sandboxes',
|
|
11
|
+
scope: schemaUtils_1.sandboxesScope,
|
|
12
|
+
title: texts_1.TXT_YAML_SANDBOX_PROPERTIES,
|
|
13
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const output_1 = __importDefault(require("../../../output"));
|
|
8
|
+
const texts_1 = require("../../../texts");
|
|
9
|
+
const schemaUtils_1 = require("../schemaUtils");
|
|
10
|
+
const render_1 = require("../render");
|
|
11
|
+
const schema_1 = require("./schema");
|
|
12
|
+
const commandYamlTargetsInfo = (0, utils_1.newCommand)('info', texts_1.DESC_COMMAND_YAML_TARGETS_INFO, {
|
|
13
|
+
requiredScopes: [],
|
|
14
|
+
examples: texts_1.EXAMPLE_YAML_TARGETS_INFO,
|
|
15
|
+
});
|
|
16
|
+
commandYamlTargetsInfo.argument('<type>', texts_1.OPTION_YAML_TARGET_TYPE);
|
|
17
|
+
commandYamlTargetsInfo.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
18
|
+
commandYamlTargetsInfo.action(async (type, options) => {
|
|
19
|
+
await (0, schemaUtils_1.ensureYamlSchema)('targets');
|
|
20
|
+
const target = await (0, schema_1.findTarget)(type);
|
|
21
|
+
if (!target) {
|
|
22
|
+
if (options.format === 'json') {
|
|
23
|
+
output_1.default.json(null);
|
|
24
|
+
output_1.default.exitNormal();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
output_1.default.error((0, texts_1.ERR_YAML_TARGET_NOT_FOUND)(type));
|
|
28
|
+
const similar = await (0, schema_1.searchTargets)(type, 5);
|
|
29
|
+
if (similar.length > 0) {
|
|
30
|
+
output_1.default.muted((0, texts_1.TXT_ACTION_DID_YOU_MEAN)(similar.map((one) => `${one.value} (${one.name})`).join(', ')));
|
|
31
|
+
}
|
|
32
|
+
output_1.default.muted(texts_1.TXT_YAML_TARGET_USE_LIST);
|
|
33
|
+
output_1.default.exitNormal();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const commonFields = new Set(await (0, schemaUtils_1.targetsScope)().commonFields());
|
|
37
|
+
const common = [];
|
|
38
|
+
const specific = [];
|
|
39
|
+
for (const property of target.properties) {
|
|
40
|
+
(commonFields.has(property.name) ? common : specific).push(property);
|
|
41
|
+
}
|
|
42
|
+
const types = target.document?.types ?? {};
|
|
43
|
+
if (options.format === 'json') {
|
|
44
|
+
output_1.default.json({
|
|
45
|
+
type: target.value,
|
|
46
|
+
slug: target.slug,
|
|
47
|
+
name: target.name,
|
|
48
|
+
description: target.description,
|
|
49
|
+
required: target.required,
|
|
50
|
+
fields: {
|
|
51
|
+
specific: (0, render_1.propertiesJson)(specific),
|
|
52
|
+
common: (0, render_1.propertiesJson)(common),
|
|
53
|
+
},
|
|
54
|
+
types: (0, render_1.typesJson)(types),
|
|
55
|
+
examples: target.examples,
|
|
56
|
+
});
|
|
57
|
+
output_1.default.exitNormal();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
output_1.default.blue(target.name, false);
|
|
61
|
+
output_1.default.gray(` · ${target.value}`);
|
|
62
|
+
output_1.default.gray(target.description);
|
|
63
|
+
output_1.default.normal('');
|
|
64
|
+
if (specific.length > 0) {
|
|
65
|
+
output_1.default.blue(texts_1.TXT_YAML_TYPE_SPECIFIC_FIELDS);
|
|
66
|
+
(0, render_1.outputProperties)(specific);
|
|
67
|
+
output_1.default.normal('');
|
|
68
|
+
}
|
|
69
|
+
if (common.length > 0) {
|
|
70
|
+
output_1.default.blue(texts_1.TXT_YAML_COMMON_FIELDS);
|
|
71
|
+
(0, render_1.outputProperties)(common);
|
|
72
|
+
}
|
|
73
|
+
if (Object.keys(types).length > 0) {
|
|
74
|
+
output_1.default.normal('');
|
|
75
|
+
output_1.default.blue(texts_1.TXT_YAML_TYPES);
|
|
76
|
+
(0, render_1.outputTypes)(types);
|
|
77
|
+
}
|
|
78
|
+
if (target.examples.length > 0) {
|
|
79
|
+
output_1.default.normal('');
|
|
80
|
+
(0, render_1.outputExamples)(target.examples);
|
|
81
|
+
}
|
|
82
|
+
output_1.default.exitNormal();
|
|
83
|
+
});
|
|
84
|
+
exports.default = commandYamlTargetsInfo;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const output_1 = __importDefault(require("../../../output"));
|
|
8
|
+
const texts_1 = require("../../../texts");
|
|
9
|
+
const schemaUtils_1 = require("../schemaUtils");
|
|
10
|
+
const schema_1 = require("./schema");
|
|
11
|
+
function targetTable(targets) {
|
|
12
|
+
output_1.default.wrappedTable([
|
|
13
|
+
['TYPE', 'NAME', 'DESCRIPTION'],
|
|
14
|
+
...targets.map((target) => [target.value, target.name, target.description]),
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
const targetJson = (targets) => targets.map((target) => ({
|
|
18
|
+
type: target.value,
|
|
19
|
+
slug: target.slug,
|
|
20
|
+
name: target.name,
|
|
21
|
+
description: target.description,
|
|
22
|
+
}));
|
|
23
|
+
const commandYamlTargetsList = (0, utils_1.newCommand)('list', texts_1.DESC_COMMAND_YAML_TARGETS_LIST, {
|
|
24
|
+
requiredScopes: [],
|
|
25
|
+
examples: texts_1.EXAMPLE_YAML_TARGETS_LIST,
|
|
26
|
+
});
|
|
27
|
+
commandYamlTargetsList.alias('ls');
|
|
28
|
+
commandYamlTargetsList.option('-s, --search <query>', texts_1.OPTION_ACTION_SEARCH);
|
|
29
|
+
commandYamlTargetsList.option('--format <text|json>', texts_1.OPTION_FORMAT);
|
|
30
|
+
commandYamlTargetsList.action(async (options) => {
|
|
31
|
+
await (0, schemaUtils_1.ensureYamlSchema)('targets');
|
|
32
|
+
const json = options.format === 'json';
|
|
33
|
+
if (options.search) {
|
|
34
|
+
const results = await (0, schema_1.searchTargets)(options.search);
|
|
35
|
+
if (json) {
|
|
36
|
+
output_1.default.json(targetJson(results));
|
|
37
|
+
}
|
|
38
|
+
else if (results.length === 0) {
|
|
39
|
+
output_1.default.error((0, texts_1.ERR_YAML_TARGET_SEARCH_NO_RESULTS)(options.search));
|
|
40
|
+
output_1.default.muted(texts_1.TXT_YAML_TARGET_USE_LIST);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
targetTable(results);
|
|
44
|
+
}
|
|
45
|
+
output_1.default.exitNormal();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const targets = await (0, schema_1.loadTargets)();
|
|
49
|
+
if (json) {
|
|
50
|
+
output_1.default.json(targetJson(targets));
|
|
51
|
+
output_1.default.exitNormal();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
output_1.default.blue((0, texts_1.TXT_YAML_TARGETS_ALL)(targets.length));
|
|
55
|
+
targetTable(targets);
|
|
56
|
+
output_1.default.normal('');
|
|
57
|
+
output_1.default.muted(texts_1.TXT_YAML_TARGET_HINT);
|
|
58
|
+
output_1.default.exitNormal();
|
|
59
|
+
});
|
|
60
|
+
exports.default = commandYamlTargetsList;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNSUPPORTED_TARGET_TYPES = void 0;
|
|
4
|
+
exports.loadTargets = loadTargets;
|
|
5
|
+
exports.findTarget = findTarget;
|
|
6
|
+
exports.searchTargets = searchTargets;
|
|
7
|
+
const schemaUtils_1 = require("../schemaUtils");
|
|
8
|
+
exports.UNSUPPORTED_TARGET_TYPES = new Set(['MATCH', 'PROJECT_REPOSITORY']);
|
|
9
|
+
async function loadTargets() {
|
|
10
|
+
const scope = (0, schemaUtils_1.targetsScope)();
|
|
11
|
+
const types = (await scope.list()).filter((type) => !exports.UNSUPPORTED_TARGET_TYPES.has(type));
|
|
12
|
+
const all = await Promise.all(types.map((type) => scope.get(type)));
|
|
13
|
+
return all
|
|
14
|
+
.filter((member) => member !== undefined)
|
|
15
|
+
.toSorted((a, b) => a.value.localeCompare(b.value));
|
|
16
|
+
}
|
|
17
|
+
async function findTarget(query) {
|
|
18
|
+
const all = await loadTargets();
|
|
19
|
+
return (all.find((member) => member.value === query.toUpperCase()) ??
|
|
20
|
+
all.find((member) => member.slug === query.toLowerCase()));
|
|
21
|
+
}
|
|
22
|
+
async function searchTargets(query, limit = Infinity) {
|
|
23
|
+
const bySearch = await (0, schemaUtils_1.targetsScope)().search(query, { fuzzy: 0.3, limit: Infinity });
|
|
24
|
+
const byType = new Map((await loadTargets()).map((member) => [member.value, member]));
|
|
25
|
+
return bySearch
|
|
26
|
+
.filter((hit) => hit.kind === 'member')
|
|
27
|
+
.flatMap((hit) => byType.get(hit.key) ?? [])
|
|
28
|
+
.slice(0, limit);
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const texts_1 = require("../../texts");
|
|
8
|
+
const list_1 = __importDefault(require("./targets/list"));
|
|
9
|
+
const info_1 = __importDefault(require("./targets/info"));
|
|
10
|
+
const commandYamlTargets = (0, utils_1.newCommand)('targets', texts_1.DESC_COMMAND_YAML_TARGETS, {
|
|
11
|
+
examples: [...texts_1.EXAMPLE_YAML_TARGETS_LIST, ...texts_1.EXAMPLE_YAML_TARGETS_INFO],
|
|
12
|
+
});
|
|
13
|
+
commandYamlTargets.addCommand(list_1.default);
|
|
14
|
+
commandYamlTargets.addCommand(info_1.default);
|
|
15
|
+
exports.default = commandYamlTargets;
|