@shell-shock/core 0.17.10 → 0.17.12
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/dist/api.cjs +31 -143
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +2 -77
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +2 -76
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +30 -140
- package/dist/api.mjs.map +1 -1
- package/dist/components/command-validation-logic.cjs +14 -15
- package/dist/components/command-validation-logic.cjs.map +1 -0
- package/dist/components/command-validation-logic.d.cts +1 -3
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +1 -3
- package/dist/components/command-validation-logic.d.mts.map +1 -1
- package/dist/components/command-validation-logic.mjs +12 -13
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +6 -6
- package/dist/components/docs.cjs.map +1 -0
- package/dist/components/docs.d.cts +4 -5
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +4 -5
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs +4 -4
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +9 -11
- package/dist/components/exec-builtin.cjs.map +1 -0
- package/dist/components/exec-builtin.d.cts +1 -2
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts +1 -2
- package/dist/components/exec-builtin.d.mts.map +1 -1
- package/dist/components/exec-builtin.mjs +7 -10
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +4 -5
- package/dist/components/helpers.cjs.map +1 -0
- package/dist/components/helpers.d.cts +6 -8
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +6 -8
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/helpers.mjs +2 -3
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/options-parser-logic.cjs +29 -30
- package/dist/components/options-parser-logic.cjs.map +1 -0
- package/dist/components/options-parser-logic.d.cts +8 -9
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +8 -9
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs +27 -28
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +3 -2
- package/dist/components/state-builtin.cjs.map +1 -0
- package/dist/components/state-builtin.d.cts +4 -5
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +4 -5
- package/dist/components/state-builtin.d.mts.map +1 -1
- package/dist/components/state-builtin.mjs +1 -1
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +4 -6
- package/dist/components/usage.cjs.map +1 -0
- package/dist/components/usage.d.cts +1 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts +1 -2
- package/dist/components/usage.d.mts.map +1 -1
- package/dist/components/usage.mjs +2 -4
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +5 -4
- package/dist/components/utils-builtin.cjs.map +1 -0
- package/dist/components/utils-builtin.d.cts +7 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +7 -8
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +3 -3
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +53 -19
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +29 -8
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +29 -8
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +51 -18
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +2 -2
- package/dist/contexts/command.cjs.map +1 -0
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts.map +1 -1
- package/dist/contexts/command.mjs.map +1 -1
- package/dist/contexts/options.cjs +4 -4
- package/dist/contexts/options.cjs.map +1 -0
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts.map +1 -1
- package/dist/contexts/options.mjs +2 -3
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/engine.cjs +138 -0
- package/dist/engine.cjs.map +1 -0
- package/dist/engine.d.cts +79 -0
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +79 -0
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +136 -0
- package/dist/engine.mjs.map +1 -0
- package/dist/helpers/automd.cjs +6 -7
- package/dist/helpers/automd.cjs.map +1 -0
- package/dist/helpers/automd.mjs +2 -3
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +2 -2
- package/dist/helpers/docs-helpers.cjs.map +1 -0
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/get-framework.cjs +24 -0
- package/dist/helpers/get-framework.cjs.map +1 -0
- package/dist/helpers/get-framework.mjs +24 -0
- package/dist/helpers/get-framework.mjs.map +1 -0
- package/dist/helpers/paths.cjs +5 -5
- package/dist/helpers/paths.cjs.map +1 -0
- package/dist/helpers/paths.mjs +4 -4
- package/dist/helpers/paths.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +4 -6
- package/dist/helpers/persistence.cjs.map +1 -0
- package/dist/helpers/persistence.mjs +3 -3
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +2 -2
- package/dist/helpers/update-package-json.cjs.map +1 -0
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +3 -3
- package/dist/helpers/utilities.cjs.map +1 -0
- package/dist/helpers/utilities.mjs +1 -1
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs +3 -3
- package/dist/helpers/validations.cjs.map +1 -0
- package/dist/helpers/validations.mjs +1 -3
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +121 -51
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +80 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +80 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +118 -6
- package/dist/index.mjs.map +1 -0
- package/dist/package.cjs +12 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.mjs +6 -0
- package/dist/package.mjs.map +1 -0
- package/dist/plugin-utils/compute-bin.cjs +8 -10
- package/dist/plugin-utils/compute-bin.cjs.map +1 -0
- package/dist/plugin-utils/compute-bin.d.cts +2 -2
- package/dist/plugin-utils/compute-bin.d.cts.map +1 -1
- package/dist/plugin-utils/compute-bin.d.mts +2 -2
- package/dist/plugin-utils/compute-bin.d.mts.map +1 -1
- package/dist/plugin-utils/compute-bin.mjs +6 -8
- package/dist/plugin-utils/compute-bin.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +7 -14
- package/dist/plugin-utils/context-helpers.cjs.map +1 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -4
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +4 -4
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +5 -12
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/deepkit.cjs +15 -16
- package/dist/plugin-utils/deepkit.cjs.map +1 -0
- package/dist/plugin-utils/deepkit.d.cts +5 -5
- package/dist/plugin-utils/deepkit.d.cts.map +1 -1
- package/dist/plugin-utils/deepkit.d.mts +5 -5
- package/dist/plugin-utils/deepkit.d.mts.map +1 -1
- package/dist/plugin-utils/deepkit.mjs +14 -15
- package/dist/plugin-utils/deepkit.mjs.map +1 -1
- package/dist/plugin-utils/description-helpers.cjs +2 -1
- package/dist/plugin-utils/description-helpers.cjs.map +1 -0
- package/dist/plugin-utils/description-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/description-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/description-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs +2 -1
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +1 -1
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.mts +2 -2
- package/dist/plugin-utils/index.mjs +2 -2
- package/dist/plugin-utils/reflect.cjs +5 -5
- package/dist/plugin-utils/reflect.cjs.map +1 -0
- package/dist/plugin-utils/reflect.d.cts.map +1 -1
- package/dist/plugin-utils/reflect.d.mts.map +1 -1
- package/dist/plugin-utils/reflect.mjs +3 -5
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +2 -1
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/type-checks.cjs +146 -17
- package/dist/plugin-utils/type-checks.cjs.map +1 -0
- package/dist/plugin-utils/type-checks.d.cts +5 -5
- package/dist/plugin-utils/type-checks.d.cts.map +1 -1
- package/dist/plugin-utils/type-checks.d.mts +5 -5
- package/dist/plugin-utils/type-checks.d.mts.map +1 -1
- package/dist/plugin-utils/type-checks.mjs +145 -16
- package/dist/plugin-utils/type-checks.mjs.map +1 -1
- package/dist/plugin.cjs +80 -56
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +75 -52
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/helpers.cjs +33 -24
- package/dist/resolver/helpers.cjs.map +1 -0
- package/dist/resolver/helpers.mjs +32 -22
- package/dist/resolver/helpers.mjs.map +1 -1
- package/dist/resolver/resolve.cjs +319 -61
- package/dist/resolver/resolve.cjs.map +1 -0
- package/dist/resolver/resolve.mjs +316 -58
- package/dist/resolver/resolve.mjs.map +1 -1
- package/dist/types/command.cjs +43 -82
- package/dist/types/command.cjs.map +1 -0
- package/dist/types/command.d.cts +61 -119
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts +61 -119
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs +42 -80
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +45 -4
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +16 -11
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +16 -11
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +40 -4
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/context.cjs +9 -1
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.d.cts +3 -2
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +3 -2
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/context.mjs +7 -1
- package/dist/types/context.mjs.map +1 -1
- package/dist/types/env.cjs +2 -1
- package/dist/types/env.cjs.map +1 -0
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/env.mjs.map +1 -1
- package/dist/types/index.cjs +6 -3
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +4 -4
- package/dist/types/options.cjs +2 -1
- package/dist/types/options.cjs.map +1 -0
- package/dist/types/options.d.cts.map +1 -1
- package/dist/types/options.d.mts.map +1 -1
- package/dist/types/options.mjs.map +1 -1
- package/package.json +43 -35
- package/dist/resolver/deepkit.cjs +0 -135
- package/dist/resolver/deepkit.mjs +0 -135
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/module.cjs +0 -145
- package/dist/resolver/module.mjs +0 -145
- package/dist/resolver/module.mjs.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getAppDescription, getAppName, getAppTitle } from "./context-helpers.mjs";
|
|
2
2
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
3
|
-
import { computed } from "@alloy-js/core";
|
|
4
3
|
|
|
5
4
|
//#region src/plugin-utils/compute-bin.ts
|
|
6
5
|
function __assignType(fn, args) {
|
|
@@ -8,23 +7,22 @@ function __assignType(fn, args) {
|
|
|
8
7
|
return fn;
|
|
9
8
|
}
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
10
|
+
* Computes the command tree for the root binary command based on the provided context.
|
|
12
11
|
*
|
|
13
12
|
* @param context - The plugin context containing the necessary information to compute the command tree.
|
|
14
|
-
* @returns The computed command tree for the
|
|
13
|
+
* @returns The computed command tree for the root binary command.
|
|
15
14
|
*/
|
|
16
15
|
function computeBin(context) {
|
|
17
|
-
return
|
|
16
|
+
return {
|
|
18
17
|
id: "",
|
|
19
18
|
name: getAppName(context),
|
|
20
19
|
title: getAppTitle(context),
|
|
21
20
|
description: getAppDescription(context),
|
|
22
|
-
|
|
21
|
+
virtual: true,
|
|
23
22
|
path: null,
|
|
24
23
|
segments: [],
|
|
25
24
|
alias: [],
|
|
26
25
|
tags: [],
|
|
27
|
-
source: "file",
|
|
28
26
|
options: Object.fromEntries(context.globalOptions.map(__assignType((option) => [option.name, option], [
|
|
29
27
|
"option",
|
|
30
28
|
"",
|
|
@@ -34,14 +32,14 @@ function computeBin(context) {
|
|
|
34
32
|
entry: { file: joinPaths(context.entryPath, "bin.ts") },
|
|
35
33
|
parent: null,
|
|
36
34
|
children: context.commands
|
|
37
|
-
}
|
|
35
|
+
};
|
|
38
36
|
}
|
|
39
37
|
computeBin.__type = [
|
|
40
38
|
"Context",
|
|
41
39
|
"context",
|
|
42
40
|
"CommandTree",
|
|
43
41
|
"computeBin",
|
|
44
|
-
"
|
|
42
|
+
"Computes the command tree for the root binary command based on the provided context.",
|
|
45
43
|
"P\"w!2\"\"w#/$?%"
|
|
46
44
|
];
|
|
47
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-bin.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"compute-bin.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
1
|
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
2
|
+
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
3
3
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
4
4
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
5
|
-
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
6
5
|
|
|
7
6
|
//#region src/plugin-utils/context-helpers.ts
|
|
8
7
|
function __assignType(fn, args) {
|
|
@@ -53,12 +52,10 @@ function getAppName(context) {
|
|
|
53
52
|
return (0, _stryke_string_format_kebab_case.kebabCase)(result);
|
|
54
53
|
}
|
|
55
54
|
getAppName.__type = [
|
|
56
|
-
"UnresolvedContext",
|
|
57
|
-
"Context",
|
|
58
55
|
"context",
|
|
59
56
|
"getAppName",
|
|
60
57
|
"Retrieves the application name from the context and configuration.",
|
|
61
|
-
"
|
|
58
|
+
"P\"2!&/\"?#"
|
|
62
59
|
];
|
|
63
60
|
/**
|
|
64
61
|
* Retrieves the application title from the context and configuration.
|
|
@@ -72,13 +69,11 @@ function getAppTitle(context, replaceCLI = false) {
|
|
|
72
69
|
return (replaceCLI ? title.replace(/(?:cli|command-line|command line)\s*(?:interface\s*)?(?:application|app)?$/gi, "") : title).trim();
|
|
73
70
|
}
|
|
74
71
|
getAppTitle.__type = [
|
|
75
|
-
"UnresolvedContext",
|
|
76
|
-
"Context",
|
|
77
72
|
"context",
|
|
78
73
|
"replaceCLI",
|
|
79
74
|
"getAppTitle",
|
|
80
75
|
"Retrieves the application title from the context and configuration.",
|
|
81
|
-
"
|
|
76
|
+
"P\"2!\"2\"&/#?$"
|
|
82
77
|
];
|
|
83
78
|
/**
|
|
84
79
|
* Retrieves the application description from the context and configuration.
|
|
@@ -90,12 +85,10 @@ function getAppDescription(context) {
|
|
|
90
85
|
return context.config.description || context.packageJson?.description || `The ${getAppTitle(context, true)} command-line interface application.`;
|
|
91
86
|
}
|
|
92
87
|
getAppDescription.__type = [
|
|
93
|
-
"UnresolvedContext",
|
|
94
|
-
"Context",
|
|
95
88
|
"context",
|
|
96
89
|
"getAppDescription",
|
|
97
90
|
"Retrieves the application description from the context and configuration.",
|
|
98
|
-
"
|
|
91
|
+
"P\"2!&/\"?#"
|
|
99
92
|
];
|
|
100
93
|
/**
|
|
101
94
|
* Retrieves the primary binary name for the application.
|
|
@@ -107,11 +100,10 @@ function getAppBin(context) {
|
|
|
107
100
|
return (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.bin) ? Object.keys(context.config.bin)[0] : (0, _stryke_string_format_kebab_case.kebabCase)(getAppName(context));
|
|
108
101
|
}
|
|
109
102
|
getAppBin.__type = [
|
|
110
|
-
"Context",
|
|
111
103
|
"context",
|
|
112
104
|
"getAppBin",
|
|
113
105
|
"Retrieves the primary binary name for the application.",
|
|
114
|
-
"P\"
|
|
106
|
+
"P\"2!&/\"?#"
|
|
115
107
|
];
|
|
116
108
|
/**
|
|
117
109
|
* Determines if a given command path segment is variable (enclosed in square brackets).
|
|
@@ -228,4 +220,5 @@ exports.getPathSegmentGroupName = getPathSegmentGroupName;
|
|
|
228
220
|
exports.getPathSegmentName = getPathSegmentName;
|
|
229
221
|
exports.isDynamicPathSegment = isDynamicPathSegment;
|
|
230
222
|
exports.isPathSegmentGroup = isPathSegmentGroup;
|
|
231
|
-
exports.sortArgAliases = sortArgAliases;
|
|
223
|
+
exports.sortArgAliases = sortArgAliases;
|
|
224
|
+
//# sourceMappingURL=context-helpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-helpers.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -14,7 +14,7 @@ declare function sortArgAliases(aliases: string[]): string[];
|
|
|
14
14
|
* @returns The application name in kebab-case format.
|
|
15
15
|
* @throws An error if no valid application name is found.
|
|
16
16
|
*/
|
|
17
|
-
declare function getAppName
|
|
17
|
+
declare function getAppName<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves the application title from the context and configuration.
|
|
20
20
|
*
|
|
@@ -22,21 +22,21 @@ declare function getAppName(context: UnresolvedContext | Context): string;
|
|
|
22
22
|
* @param replaceCLI - Whether to replace CLI-related terms in the title with the application name.
|
|
23
23
|
* @returns The application title in title-case format.
|
|
24
24
|
*/
|
|
25
|
-
declare function getAppTitle
|
|
25
|
+
declare function getAppTitle<TContext extends UnresolvedContext | Context>(context: TContext, replaceCLI?: boolean): string;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieves the application description from the context and configuration.
|
|
28
28
|
*
|
|
29
29
|
* @param context - The build context containing workspace and package information.
|
|
30
30
|
* @returns The application description.
|
|
31
31
|
*/
|
|
32
|
-
declare function getAppDescription
|
|
32
|
+
declare function getAppDescription<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
33
33
|
/**
|
|
34
34
|
* Retrieves the primary binary name for the application.
|
|
35
35
|
*
|
|
36
36
|
* @param context - The build context containing workspace and package information.
|
|
37
37
|
* @returns The primary binary name as a string.
|
|
38
38
|
*/
|
|
39
|
-
declare function getAppBin(context:
|
|
39
|
+
declare function getAppBin<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
40
40
|
/**
|
|
41
41
|
* Determines if a given command path segment is variable (enclosed in square brackets).
|
|
42
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":";;;;;AA8BA;;;iBAAgB,cAAA,CAAe,
|
|
1
|
+
{"version":3,"file":"context-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":";;;;;AA8BA;;;iBAAgB,cAAA,CAAe,OAAiB;AAAA;AAkBhD;;;;;;AAlBgD,iBAkBhC,UAAA,kBAA4B,iBAAA,GAAoB,OAAA,EAC9D,OAAA,EAAS,QAAA;;;;;;;;iBA4BK,WAAA,kBAA6B,iBAAA,GAAoB,OAAA,EAC/D,OAAA,EAAS,QAAA,EACT,UAAA;AAFF;;;;;;AAAA,iBAwBgB,iBAAA,kBAAmC,iBAAA,GAAoB,OAAA,EACrE,OAAA,EAAS,QAAA;;;;;;;iBAeK,SAAA,kBAA2B,iBAAA,GAAoB,OAAA,EAC7D,OAAA,EAAS,QAAA;;AAvCS;AAsBpB;;;;;;;;;;iBAoCgB,oBAAA,CAAqB,IAAY;;;;AAnC9B;AAenB;;;;;;;iBAmCgB,yBAAA,CAA0B,IAAY;;;;;;;AAlCnC;AAmBnB;;;;AAAiD;AAejD;iBAiBgB,kBAAA,CAAmB,IAAY;;;AAjBO;AAiBtD;;;;AAA+C;AAgB/C;;;;iBAAgB,uBAAA,CAAwB,IAAY;AAkBpD;;;;AAA+C;;;;;;;AAA/C,iBAAgB,kBAAA,CAAmB,IAAY"}
|
|
@@ -14,7 +14,7 @@ declare function sortArgAliases(aliases: string[]): string[];
|
|
|
14
14
|
* @returns The application name in kebab-case format.
|
|
15
15
|
* @throws An error if no valid application name is found.
|
|
16
16
|
*/
|
|
17
|
-
declare function getAppName
|
|
17
|
+
declare function getAppName<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieves the application title from the context and configuration.
|
|
20
20
|
*
|
|
@@ -22,21 +22,21 @@ declare function getAppName(context: UnresolvedContext | Context): string;
|
|
|
22
22
|
* @param replaceCLI - Whether to replace CLI-related terms in the title with the application name.
|
|
23
23
|
* @returns The application title in title-case format.
|
|
24
24
|
*/
|
|
25
|
-
declare function getAppTitle
|
|
25
|
+
declare function getAppTitle<TContext extends UnresolvedContext | Context>(context: TContext, replaceCLI?: boolean): string;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieves the application description from the context and configuration.
|
|
28
28
|
*
|
|
29
29
|
* @param context - The build context containing workspace and package information.
|
|
30
30
|
* @returns The application description.
|
|
31
31
|
*/
|
|
32
|
-
declare function getAppDescription
|
|
32
|
+
declare function getAppDescription<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
33
33
|
/**
|
|
34
34
|
* Retrieves the primary binary name for the application.
|
|
35
35
|
*
|
|
36
36
|
* @param context - The build context containing workspace and package information.
|
|
37
37
|
* @returns The primary binary name as a string.
|
|
38
38
|
*/
|
|
39
|
-
declare function getAppBin(context:
|
|
39
|
+
declare function getAppBin<TContext extends UnresolvedContext | Context>(context: TContext): string;
|
|
40
40
|
/**
|
|
41
41
|
* Determines if a given command path segment is variable (enclosed in square brackets).
|
|
42
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/context-helpers.ts"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
2
|
+
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
2
3
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
3
4
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
4
|
-
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
5
5
|
|
|
6
6
|
//#region src/plugin-utils/context-helpers.ts
|
|
7
7
|
function __assignType(fn, args) {
|
|
@@ -52,12 +52,10 @@ function getAppName(context) {
|
|
|
52
52
|
return kebabCase(result);
|
|
53
53
|
}
|
|
54
54
|
getAppName.__type = [
|
|
55
|
-
"UnresolvedContext",
|
|
56
|
-
"Context",
|
|
57
55
|
"context",
|
|
58
56
|
"getAppName",
|
|
59
57
|
"Retrieves the application name from the context and configuration.",
|
|
60
|
-
"
|
|
58
|
+
"P\"2!&/\"?#"
|
|
61
59
|
];
|
|
62
60
|
/**
|
|
63
61
|
* Retrieves the application title from the context and configuration.
|
|
@@ -71,13 +69,11 @@ function getAppTitle(context, replaceCLI = false) {
|
|
|
71
69
|
return (replaceCLI ? title.replace(/(?:cli|command-line|command line)\s*(?:interface\s*)?(?:application|app)?$/gi, "") : title).trim();
|
|
72
70
|
}
|
|
73
71
|
getAppTitle.__type = [
|
|
74
|
-
"UnresolvedContext",
|
|
75
|
-
"Context",
|
|
76
72
|
"context",
|
|
77
73
|
"replaceCLI",
|
|
78
74
|
"getAppTitle",
|
|
79
75
|
"Retrieves the application title from the context and configuration.",
|
|
80
|
-
"
|
|
76
|
+
"P\"2!\"2\"&/#?$"
|
|
81
77
|
];
|
|
82
78
|
/**
|
|
83
79
|
* Retrieves the application description from the context and configuration.
|
|
@@ -89,12 +85,10 @@ function getAppDescription(context) {
|
|
|
89
85
|
return context.config.description || context.packageJson?.description || `The ${getAppTitle(context, true)} command-line interface application.`;
|
|
90
86
|
}
|
|
91
87
|
getAppDescription.__type = [
|
|
92
|
-
"UnresolvedContext",
|
|
93
|
-
"Context",
|
|
94
88
|
"context",
|
|
95
89
|
"getAppDescription",
|
|
96
90
|
"Retrieves the application description from the context and configuration.",
|
|
97
|
-
"
|
|
91
|
+
"P\"2!&/\"?#"
|
|
98
92
|
];
|
|
99
93
|
/**
|
|
100
94
|
* Retrieves the primary binary name for the application.
|
|
@@ -106,11 +100,10 @@ function getAppBin(context) {
|
|
|
106
100
|
return isSetObject(context.config.bin) ? Object.keys(context.config.bin)[0] : kebabCase(getAppName(context));
|
|
107
101
|
}
|
|
108
102
|
getAppBin.__type = [
|
|
109
|
-
"Context",
|
|
110
103
|
"context",
|
|
111
104
|
"getAppBin",
|
|
112
105
|
"Retrieves the primary binary name for the application.",
|
|
113
|
-
"P\"
|
|
106
|
+
"P\"2!&/\"?#"
|
|
114
107
|
];
|
|
115
108
|
/**
|
|
116
109
|
* Determines if a given command path segment is variable (enclosed in square brackets).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-helpers.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"context-helpers.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_types_command = require('../types/command.cjs');
|
|
3
1
|
const require_type_checks = require('./type-checks.cjs');
|
|
4
|
-
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
2
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
3
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
4
|
|
|
7
5
|
//#region src/plugin-utils/deepkit.ts
|
|
8
6
|
/**
|
|
9
|
-
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
7
|
+
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
10
8
|
*
|
|
11
9
|
* @param command - The command parameter or kind to extract the reflection kind from.
|
|
12
10
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
13
11
|
* @returns The extracted {@link ReflectionKind}.
|
|
14
12
|
*/
|
|
15
13
|
function extractReflectionKind(command, checkVariadic = true) {
|
|
16
|
-
if (require_type_checks.
|
|
17
|
-
else if (require_type_checks.
|
|
18
|
-
else if (require_type_checks.
|
|
14
|
+
if (require_type_checks.isCommandParameterType(command) && command === "string" || (0, _stryke_type_checks_is_set_object.isSetObject)(command) && command.type === "string") return checkVariadic && command.variadic ? _powerlines_deepkit_vendor_type.ReflectionKind.array : _powerlines_deepkit_vendor_type.ReflectionKind.string;
|
|
15
|
+
else if (require_type_checks.isCommandParameterType(command) && command === "number" || (0, _stryke_type_checks_is_set_object.isSetObject)(command) && command.type === "number") return checkVariadic && command.variadic ? _powerlines_deepkit_vendor_type.ReflectionKind.array : _powerlines_deepkit_vendor_type.ReflectionKind.number;
|
|
16
|
+
else if (require_type_checks.isCommandParameterType(command) && command === "boolean" || (0, _stryke_type_checks_is_set_object.isSetObject)(command) && command.type === "boolean") return _powerlines_deepkit_vendor_type.ReflectionKind.boolean;
|
|
19
17
|
else return _powerlines_deepkit_vendor_type.ReflectionKind.string;
|
|
20
18
|
}
|
|
21
19
|
extractReflectionKind.__type = [
|
|
22
20
|
"BaseCommandParameter",
|
|
23
|
-
"
|
|
21
|
+
"CommandParameterType",
|
|
24
22
|
"command",
|
|
25
23
|
"checkVariadic",
|
|
26
24
|
"extractReflectionKind",
|
|
27
|
-
"Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
25
|
+
"Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.",
|
|
28
26
|
"PP\"w!\"w\"J2#\"2$!/%?&"
|
|
29
27
|
];
|
|
30
28
|
/**
|
|
31
|
-
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
29
|
+
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
32
30
|
*
|
|
33
31
|
* @param command - The command parameter or kind to extract the type from.
|
|
34
32
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
@@ -39,15 +37,15 @@ function extractType(command, checkVariadic = true) {
|
|
|
39
37
|
if (reflectionKind === _powerlines_deepkit_vendor_type.ReflectionKind.string) return { kind: _powerlines_deepkit_vendor_type.ReflectionKind.string };
|
|
40
38
|
else if (reflectionKind === _powerlines_deepkit_vendor_type.ReflectionKind.number) return { kind: _powerlines_deepkit_vendor_type.ReflectionKind.number };
|
|
41
39
|
else if (reflectionKind === _powerlines_deepkit_vendor_type.ReflectionKind.boolean) return { kind: _powerlines_deepkit_vendor_type.ReflectionKind.boolean };
|
|
42
|
-
else if (reflectionKind === _powerlines_deepkit_vendor_type.ReflectionKind.array) if (require_type_checks.
|
|
40
|
+
else if (reflectionKind === _powerlines_deepkit_vendor_type.ReflectionKind.array) if (require_type_checks.isCommandParameterType(command)) return {
|
|
43
41
|
kind: _powerlines_deepkit_vendor_type.ReflectionKind.array,
|
|
44
|
-
type: extractType({
|
|
42
|
+
type: extractType({ type: command }, false)
|
|
45
43
|
};
|
|
46
44
|
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(command)) return {
|
|
47
45
|
kind: _powerlines_deepkit_vendor_type.ReflectionKind.array,
|
|
48
46
|
type: extractType({
|
|
49
47
|
...command,
|
|
50
|
-
|
|
48
|
+
type: command.type
|
|
51
49
|
}, false)
|
|
52
50
|
};
|
|
53
51
|
else return {
|
|
@@ -58,14 +56,15 @@ function extractType(command, checkVariadic = true) {
|
|
|
58
56
|
}
|
|
59
57
|
extractType.__type = [
|
|
60
58
|
"BaseCommandParameter",
|
|
61
|
-
"
|
|
59
|
+
"CommandParameterType",
|
|
62
60
|
"command",
|
|
63
61
|
"checkVariadic",
|
|
64
62
|
"extractType",
|
|
65
|
-
"Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
63
|
+
"Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.",
|
|
66
64
|
"PP\"w!\"w\"J2#\"2$!/%?&"
|
|
67
65
|
];
|
|
68
66
|
|
|
69
67
|
//#endregion
|
|
70
68
|
exports.extractReflectionKind = extractReflectionKind;
|
|
71
|
-
exports.extractType = extractType;
|
|
69
|
+
exports.extractType = extractType;
|
|
70
|
+
//# sourceMappingURL=deepkit.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepkit.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseCommandParameter,
|
|
1
|
+
import { BaseCommandParameter, CommandParameterType } from "../types/command.cjs";
|
|
2
2
|
import { ReflectionKind, Type } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin-utils/deepkit.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
6
|
+
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
7
7
|
*
|
|
8
8
|
* @param command - The command parameter or kind to extract the reflection kind from.
|
|
9
9
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
10
10
|
* @returns The extracted {@link ReflectionKind}.
|
|
11
11
|
*/
|
|
12
|
-
declare function extractReflectionKind(command: BaseCommandParameter |
|
|
12
|
+
declare function extractReflectionKind(command: BaseCommandParameter | CommandParameterType, checkVariadic?: boolean): ReflectionKind;
|
|
13
13
|
/**
|
|
14
|
-
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
14
|
+
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
15
15
|
*
|
|
16
16
|
* @param command - The command parameter or kind to extract the type from.
|
|
17
17
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
18
18
|
* @returns The extracted {@link Type}.
|
|
19
19
|
*/
|
|
20
|
-
declare function extractType(command: BaseCommandParameter |
|
|
20
|
+
declare function extractType(command: BaseCommandParameter | CommandParameterType, checkVariadic?: boolean): Type;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { extractReflectionKind, extractType };
|
|
23
23
|
//# sourceMappingURL=deepkit.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../src/plugin-utils/deepkit.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"deepkit.d.cts","names":[],"sources":["../../src/plugin-utils/deepkit.ts"],"mappings":";;;;;AAmCA;;;;;;iBAAgB,qBAAA,CACd,OAAA,EAAS,oBAAA,GAAuB,oBAAA,EAChC,aAAA,aACC,cAAA;;;;;;;;iBAgCa,WAAA,CACd,OAAA,EAAS,oBAAA,GAAuB,oBAAA,EAChC,aAAA,aACC,IAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseCommandParameter,
|
|
1
|
+
import { BaseCommandParameter, CommandParameterType } from "../types/command.mjs";
|
|
2
2
|
import { ReflectionKind, Type } from "@powerlines/deepkit/vendor/type";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin-utils/deepkit.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
6
|
+
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
7
7
|
*
|
|
8
8
|
* @param command - The command parameter or kind to extract the reflection kind from.
|
|
9
9
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
10
10
|
* @returns The extracted {@link ReflectionKind}.
|
|
11
11
|
*/
|
|
12
|
-
declare function extractReflectionKind(command: BaseCommandParameter |
|
|
12
|
+
declare function extractReflectionKind(command: BaseCommandParameter | CommandParameterType, checkVariadic?: boolean): ReflectionKind;
|
|
13
13
|
/**
|
|
14
|
-
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
14
|
+
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
15
15
|
*
|
|
16
16
|
* @param command - The command parameter or kind to extract the type from.
|
|
17
17
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
18
18
|
* @returns The extracted {@link Type}.
|
|
19
19
|
*/
|
|
20
|
-
declare function extractType(command: BaseCommandParameter |
|
|
20
|
+
declare function extractType(command: BaseCommandParameter | CommandParameterType, checkVariadic?: boolean): Type;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { extractReflectionKind, extractType };
|
|
23
23
|
//# sourceMappingURL=deepkit.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../src/plugin-utils/deepkit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"deepkit.d.mts","names":[],"sources":["../../src/plugin-utils/deepkit.ts"],"mappings":""}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isCommandParameterKind } from "./type-checks.mjs";
|
|
3
|
-
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
1
|
+
import { isCommandParameterType } from "./type-checks.mjs";
|
|
4
2
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
3
|
+
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
5
4
|
|
|
6
5
|
//#region src/plugin-utils/deepkit.ts
|
|
7
6
|
/**
|
|
8
|
-
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
7
|
+
* Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
9
8
|
*
|
|
10
9
|
* @param command - The command parameter or kind to extract the reflection kind from.
|
|
11
10
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
12
11
|
* @returns The extracted {@link ReflectionKind}.
|
|
13
12
|
*/
|
|
14
13
|
function extractReflectionKind(command, checkVariadic = true) {
|
|
15
|
-
if (
|
|
16
|
-
else if (
|
|
17
|
-
else if (
|
|
14
|
+
if (isCommandParameterType(command) && command === "string" || isSetObject(command) && command.type === "string") return checkVariadic && command.variadic ? ReflectionKind.array : ReflectionKind.string;
|
|
15
|
+
else if (isCommandParameterType(command) && command === "number" || isSetObject(command) && command.type === "number") return checkVariadic && command.variadic ? ReflectionKind.array : ReflectionKind.number;
|
|
16
|
+
else if (isCommandParameterType(command) && command === "boolean" || isSetObject(command) && command.type === "boolean") return ReflectionKind.boolean;
|
|
18
17
|
else return ReflectionKind.string;
|
|
19
18
|
}
|
|
20
19
|
extractReflectionKind.__type = [
|
|
21
20
|
"BaseCommandParameter",
|
|
22
|
-
"
|
|
21
|
+
"CommandParameterType",
|
|
23
22
|
"command",
|
|
24
23
|
"checkVariadic",
|
|
25
24
|
"extractReflectionKind",
|
|
26
|
-
"Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link
|
|
25
|
+
"Extracts a {@link ReflectionKind} from a {@link BaseCommandParameter} or {@link CommandParameterType}.",
|
|
27
26
|
"PP\"w!\"w\"J2#\"2$!/%?&"
|
|
28
27
|
];
|
|
29
28
|
/**
|
|
30
|
-
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
29
|
+
* Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.
|
|
31
30
|
*
|
|
32
31
|
* @param command - The command parameter or kind to extract the type from.
|
|
33
32
|
* @param checkVariadic - Whether to check for variadic parameters (arrays).
|
|
@@ -38,15 +37,15 @@ function extractType(command, checkVariadic = true) {
|
|
|
38
37
|
if (reflectionKind === ReflectionKind.string) return { kind: ReflectionKind.string };
|
|
39
38
|
else if (reflectionKind === ReflectionKind.number) return { kind: ReflectionKind.number };
|
|
40
39
|
else if (reflectionKind === ReflectionKind.boolean) return { kind: ReflectionKind.boolean };
|
|
41
|
-
else if (reflectionKind === ReflectionKind.array) if (
|
|
40
|
+
else if (reflectionKind === ReflectionKind.array) if (isCommandParameterType(command)) return {
|
|
42
41
|
kind: ReflectionKind.array,
|
|
43
|
-
type: extractType({
|
|
42
|
+
type: extractType({ type: command }, false)
|
|
44
43
|
};
|
|
45
44
|
else if (isSetObject(command)) return {
|
|
46
45
|
kind: ReflectionKind.array,
|
|
47
46
|
type: extractType({
|
|
48
47
|
...command,
|
|
49
|
-
|
|
48
|
+
type: command.type
|
|
50
49
|
}, false)
|
|
51
50
|
};
|
|
52
51
|
else return {
|
|
@@ -57,11 +56,11 @@ function extractType(command, checkVariadic = true) {
|
|
|
57
56
|
}
|
|
58
57
|
extractType.__type = [
|
|
59
58
|
"BaseCommandParameter",
|
|
60
|
-
"
|
|
59
|
+
"CommandParameterType",
|
|
61
60
|
"command",
|
|
62
61
|
"checkVariadic",
|
|
63
62
|
"extractType",
|
|
64
|
-
"Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link
|
|
63
|
+
"Extracts a {@link Type} from a {@link BaseCommandParameter} or {@link CommandParameterType}.",
|
|
65
64
|
"PP\"w!\"w\"J2#\"2$!/%?&"
|
|
66
65
|
];
|
|
67
66
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepkit.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"deepkit.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -108,4 +108,5 @@ formatShortDescription.__type = [
|
|
|
108
108
|
exports.__ΩFormatDescriptionOptions = __ΩFormatDescriptionOptions;
|
|
109
109
|
exports.__ΩFormatShortDescriptionOptions = __ΩFormatShortDescriptionOptions;
|
|
110
110
|
exports.formatDescription = formatDescription;
|
|
111
|
-
exports.formatShortDescription = formatShortDescription;
|
|
111
|
+
exports.formatShortDescription = formatShortDescription;
|
|
112
|
+
//# sourceMappingURL=description-helpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description-helpers.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"mappings":";UAkBiB,wBAAA;EAAA
|
|
1
|
+
{"version":3,"file":"description-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"mappings":";UAkBiB,wBAAA;EAAA;;;;AAaG;EAPlB,eAAA;EA4D+B;;;;;EArD/B,kBAAkB;AAAA;AAuDoB;AAOxC;;;;AAMQ;AAUR;;;AAvBwC,iBAFxB,iBAAA,CACd,WAAA,UACA,OAAA,GAAS,wBAA6B;AAAA,UAOvB,6BAAA,SAAsC,wBAAwB;EAkBpE;;;AAAkC;;EAZ3C,MAAM;AAAA;;;;;;;;iBAUQ,sBAAA,CACd,WAAA,UACA,OAAA,GAAS,6BAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"description-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-helpers.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"description-helpers.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -114,4 +114,5 @@ getCommandSegments.__type = [
|
|
|
114
114
|
exports.getCommandList = getCommandList;
|
|
115
115
|
exports.getCommandPaths = getCommandPaths;
|
|
116
116
|
exports.getCommandSegments = getCommandSegments;
|
|
117
|
-
exports.getCommandTree = getCommandTree;
|
|
117
|
+
exports.getCommandTree = getCommandTree;
|
|
118
|
+
//# sourceMappingURL=get-command-tree.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-command-tree.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-command-tree.d.cts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"mappings":";;;;;;AA8BA;;;;;iBAAgB,cAAA,CACd,OAAA,EAAS,OAAA,EACT,IAAA,cACC,
|
|
1
|
+
{"version":3,"file":"get-command-tree.d.cts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"mappings":";;;;;;AA8BA;;;;;iBAAgB,cAAA,CACd,OAAA,EAAS,OAAA,EACT,IAAA,cACC,WAAW;;;;AAAA;AA+Bd;;iBAAsB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,OAAA,CAAQ,WAAA;;;;;;;iBAe1C,eAAA,CAAgB,OAAA,EAAS,OAAA,GAAU,OAAO;;;;AAfW;AAe3E;;iBAiBsB,kBAAA,CACpB,OAAA,EAAS,OAAA,GACR,OAAO"}
|