@shell-shock/core 0.17.5 → 0.17.7
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/README.md +1 -1
- package/dist/components/command-validation-logic.cjs +214 -152
- package/dist/components/command-validation-logic.mjs +213 -152
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +113 -9
- package/dist/components/docs.mjs +109 -9
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +36 -1
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts.map +1 -1
- package/dist/components/exec-builtin.mjs +35 -1
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +51 -2
- package/dist/components/helpers.mjs +50 -2
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/index.cjs +17 -1
- package/dist/components/index.mjs +9 -9
- package/dist/components/options-parser-logic.cjs +411 -174
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs +405 -174
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +61 -5
- package/dist/components/state-builtin.mjs +60 -5
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +46 -3
- package/dist/components/usage.mjs +45 -3
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +68 -3
- package/dist/components/utils-builtin.mjs +67 -3
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/helpers/automd.cjs +28 -13
- package/dist/helpers/automd.mjs +28 -13
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/plugin-utils/compute-bin.cjs +50 -0
- package/dist/plugin-utils/compute-bin.d.cts +13 -0
- package/dist/plugin-utils/compute-bin.d.cts.map +1 -0
- package/dist/plugin-utils/compute-bin.d.mts +13 -0
- package/dist/plugin-utils/compute-bin.d.mts.map +1 -0
- package/dist/plugin-utils/compute-bin.mjs +50 -0
- package/dist/plugin-utils/compute-bin.mjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.cjs +50 -0
- package/dist/plugin-utils/get-command-tree.d.cts +15 -1
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts +15 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs +49 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +4 -0
- package/dist/plugin-utils/index.d.cts +3 -2
- package/dist/plugin-utils/index.d.mts +3 -2
- package/dist/plugin-utils/index.mjs +3 -2
- package/dist/plugin.cjs +170 -52
- package/dist/plugin.mjs +170 -52
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/deepkit.cjs +1 -1
- package/dist/resolver/deepkit.mjs +1 -1
- package/dist/resolver/deepkit.mjs.map +1 -1
- package/dist/types/command.cjs +120 -10
- package/dist/types/command.d.cts +95 -8
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts +95 -8
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs +109 -10
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/index.cjs +12 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +2 -2
- package/package.json +10 -10
package/dist/components/docs.cjs
CHANGED
|
@@ -16,6 +16,27 @@ let _powerlines_plugin_alloy_markdown_components_markdown_table = require("@powe
|
|
|
16
16
|
let _stryke_path_join = require("@stryke/path/join");
|
|
17
17
|
|
|
18
18
|
//#region src/components/docs.tsx
|
|
19
|
+
const __ΩRequired = [
|
|
20
|
+
"T",
|
|
21
|
+
"Required",
|
|
22
|
+
"l+e#!e\"!fRb!Pde\"!gN##w\"y"
|
|
23
|
+
];
|
|
24
|
+
const __ΩPartial = [
|
|
25
|
+
"T",
|
|
26
|
+
"Partial",
|
|
27
|
+
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
28
|
+
];
|
|
29
|
+
function __assignType(fn, args) {
|
|
30
|
+
fn.__type = args;
|
|
31
|
+
return fn;
|
|
32
|
+
}
|
|
33
|
+
const __ΩCommandOptionsDocsProps = [
|
|
34
|
+
"CommandTree",
|
|
35
|
+
"command",
|
|
36
|
+
"The command to generate options documentation for.",
|
|
37
|
+
"CommandOptionsDocsProps",
|
|
38
|
+
"P\"w!4\"?#Mw$y"
|
|
39
|
+
];
|
|
19
40
|
/**
|
|
20
41
|
* Generates the options markdown documentation for a command.
|
|
21
42
|
*/
|
|
@@ -23,22 +44,47 @@ function CommandOptionsDocs(props) {
|
|
|
23
44
|
const { command } = props;
|
|
24
45
|
if (Object.keys(command.options).length === 0) return _alloy_js_core.code`This command does not have any options.`;
|
|
25
46
|
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
|
|
26
|
-
return require_reflect.sortOptions(Object.values(command.options)).map((option) => {
|
|
47
|
+
return require_reflect.sortOptions(Object.values(command.options)).map(__assignType((option) => {
|
|
27
48
|
return {
|
|
28
49
|
name: option.name.trim(),
|
|
29
50
|
description: option.description.trim(),
|
|
30
51
|
defaultValue: option.default ? String(option.default)?.includes("\"") ? option.default : `\`${option.default}\`` : "",
|
|
31
52
|
required: option.optional || option.default ? "" : "✔"
|
|
32
53
|
};
|
|
33
|
-
}
|
|
54
|
+
}, [
|
|
55
|
+
"option",
|
|
56
|
+
"",
|
|
57
|
+
"P\"2!\"/\""
|
|
58
|
+
]));
|
|
34
59
|
} });
|
|
35
60
|
}
|
|
61
|
+
CommandOptionsDocs.__type = [
|
|
62
|
+
() => __ΩCommandOptionsDocsProps,
|
|
63
|
+
"props",
|
|
64
|
+
"CommandOptionsDocs",
|
|
65
|
+
"Generates the options markdown documentation for a command.",
|
|
66
|
+
"Pn!2\"\"/#?$"
|
|
67
|
+
];
|
|
68
|
+
const __ΩCommandDocsUsageExampleProps = [
|
|
69
|
+
"npm",
|
|
70
|
+
"yarn",
|
|
71
|
+
"pnpm",
|
|
72
|
+
"bun",
|
|
73
|
+
"packageManager",
|
|
74
|
+
"npm",
|
|
75
|
+
"The package manager to generate the usage example for.",
|
|
76
|
+
"CommandTree",
|
|
77
|
+
"command",
|
|
78
|
+
"The command to generate the usage example for.",
|
|
79
|
+
"CommandDocsUsageExampleProps",
|
|
80
|
+
"PP.!.\".#.$J4%8>&?'\"w(4)?*Mw+y"
|
|
81
|
+
];
|
|
36
82
|
/**
|
|
37
83
|
* Generates the markdown documentation for a command.
|
|
38
84
|
*/
|
|
39
85
|
function CommandDocsUsageExample(props) {
|
|
40
86
|
const { packageManager = "npm", command } = props;
|
|
41
|
-
const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
87
|
+
const context = (_powerlines_plugin_alloy_core_contexts_context.usePowerlines.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)());
|
|
42
88
|
return [
|
|
43
89
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
44
90
|
_alloy_js_core.code`\`\`\`bash `,
|
|
@@ -55,6 +101,29 @@ function CommandDocsUsageExample(props) {
|
|
|
55
101
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
56
102
|
];
|
|
57
103
|
}
|
|
104
|
+
CommandDocsUsageExample.__type = [
|
|
105
|
+
() => __ΩCommandDocsUsageExampleProps,
|
|
106
|
+
"props",
|
|
107
|
+
"CommandDocsUsageExample",
|
|
108
|
+
"Generates the markdown documentation for a command.",
|
|
109
|
+
"Pn!2\"\"/#?$"
|
|
110
|
+
];
|
|
111
|
+
const __ΩCommandDocsProps = [
|
|
112
|
+
"levelOffset",
|
|
113
|
+
0,
|
|
114
|
+
"The heading level offset to apply to the generated documentation.",
|
|
115
|
+
"CommandTree",
|
|
116
|
+
"command",
|
|
117
|
+
"The command to generate options documentation for.",
|
|
118
|
+
() => __ΩRequired,
|
|
119
|
+
() => __ΩCommandDocsUsageExampleProps,
|
|
120
|
+
"packageManager",
|
|
121
|
+
"usageExamples",
|
|
122
|
+
"`[\"npm\"]`",
|
|
123
|
+
"Optional usage examples to include in the documentation.",
|
|
124
|
+
"CommandDocsProps",
|
|
125
|
+
"P'4!8>\"?#\"w$4%?&n(o'\".)fF4*8>+?,Mw-y"
|
|
126
|
+
];
|
|
58
127
|
/**
|
|
59
128
|
* Generates the markdown documentation for a command.
|
|
60
129
|
*/
|
|
@@ -91,10 +160,16 @@ function CommandDocs(props) {
|
|
|
91
160
|
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
92
161
|
each: usageExamples,
|
|
93
162
|
hardline: true,
|
|
94
|
-
children
|
|
95
|
-
packageManager,
|
|
96
|
-
|
|
97
|
-
|
|
163
|
+
get children() {
|
|
164
|
+
return __assignType((packageManager) => (0, _alloy_js_core_jsx_runtime.createComponent)(CommandDocsUsageExample, {
|
|
165
|
+
packageManager,
|
|
166
|
+
command
|
|
167
|
+
}), [
|
|
168
|
+
"packageManager",
|
|
169
|
+
"",
|
|
170
|
+
"P\"2!\"/\""
|
|
171
|
+
]);
|
|
172
|
+
}
|
|
98
173
|
});
|
|
99
174
|
}
|
|
100
175
|
}),
|
|
@@ -110,12 +185,30 @@ function CommandDocs(props) {
|
|
|
110
185
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
111
186
|
];
|
|
112
187
|
}
|
|
188
|
+
CommandDocs.__type = [
|
|
189
|
+
() => __ΩCommandDocsProps,
|
|
190
|
+
"props",
|
|
191
|
+
"CommandDocs",
|
|
192
|
+
"Generates the markdown documentation for a command.",
|
|
193
|
+
"Pn!2\"\"/#?$"
|
|
194
|
+
];
|
|
195
|
+
const __ΩCommandDocsFileProps = [
|
|
196
|
+
() => __ΩPartial,
|
|
197
|
+
"levelOffset",
|
|
198
|
+
0,
|
|
199
|
+
"The heading level offset to apply to the generated documentation.",
|
|
200
|
+
"CommandTree",
|
|
201
|
+
"command",
|
|
202
|
+
"The command to generate documentation for.",
|
|
203
|
+
"CommandDocsFileProps",
|
|
204
|
+
"P!o!\"'4\"8>#?$\"w%4&?'Mw(y"
|
|
205
|
+
];
|
|
113
206
|
/**
|
|
114
207
|
* Generates the markdown documentation file for a command.
|
|
115
208
|
*/
|
|
116
209
|
function CommandDocsFile(props) {
|
|
117
210
|
const { levelOffset = 0, command, frontMatter, ...rest } = props;
|
|
118
|
-
const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
211
|
+
const context = (_powerlines_plugin_alloy_core_contexts_context.usePowerlines.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)());
|
|
119
212
|
const usageExamples = (0, _alloy_js_core.memo)(() => [
|
|
120
213
|
"npm",
|
|
121
214
|
"yarn",
|
|
@@ -153,9 +246,20 @@ function CommandDocsFile(props) {
|
|
|
153
246
|
}
|
|
154
247
|
});
|
|
155
248
|
}
|
|
249
|
+
CommandDocsFile.__type = [
|
|
250
|
+
() => __ΩCommandDocsFileProps,
|
|
251
|
+
"props",
|
|
252
|
+
"CommandDocsFile",
|
|
253
|
+
"Generates the markdown documentation file for a command.",
|
|
254
|
+
"Pn!2\"\"/#?$"
|
|
255
|
+
];
|
|
156
256
|
|
|
157
257
|
//#endregion
|
|
158
258
|
exports.CommandDocs = CommandDocs;
|
|
159
259
|
exports.CommandDocsFile = CommandDocsFile;
|
|
160
260
|
exports.CommandDocsUsageExample = CommandDocsUsageExample;
|
|
161
|
-
exports.CommandOptionsDocs = CommandOptionsDocs;
|
|
261
|
+
exports.CommandOptionsDocs = CommandOptionsDocs;
|
|
262
|
+
exports.__ΩCommandDocsFileProps = __ΩCommandDocsFileProps;
|
|
263
|
+
exports.__ΩCommandDocsProps = __ΩCommandDocsProps;
|
|
264
|
+
exports.__ΩCommandDocsUsageExampleProps = __ΩCommandDocsUsageExampleProps;
|
|
265
|
+
exports.__ΩCommandOptionsDocsProps = __ΩCommandOptionsDocsProps;
|
package/dist/components/docs.mjs
CHANGED
|
@@ -14,6 +14,27 @@ import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/mark
|
|
|
14
14
|
import { joinPaths } from "@stryke/path/join";
|
|
15
15
|
|
|
16
16
|
//#region src/components/docs.tsx
|
|
17
|
+
const __ΩRequired = [
|
|
18
|
+
"T",
|
|
19
|
+
"Required",
|
|
20
|
+
"l+e#!e\"!fRb!Pde\"!gN##w\"y"
|
|
21
|
+
];
|
|
22
|
+
const __ΩPartial = [
|
|
23
|
+
"T",
|
|
24
|
+
"Partial",
|
|
25
|
+
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
26
|
+
];
|
|
27
|
+
function __assignType(fn, args) {
|
|
28
|
+
fn.__type = args;
|
|
29
|
+
return fn;
|
|
30
|
+
}
|
|
31
|
+
const __ΩCommandOptionsDocsProps = [
|
|
32
|
+
"CommandTree",
|
|
33
|
+
"command",
|
|
34
|
+
"The command to generate options documentation for.",
|
|
35
|
+
"CommandOptionsDocsProps",
|
|
36
|
+
"P\"w!4\"?#Mw$y"
|
|
37
|
+
];
|
|
17
38
|
/**
|
|
18
39
|
* Generates the options markdown documentation for a command.
|
|
19
40
|
*/
|
|
@@ -21,22 +42,47 @@ function CommandOptionsDocs(props) {
|
|
|
21
42
|
const { command } = props;
|
|
22
43
|
if (Object.keys(command.options).length === 0) return code`This command does not have any options.`;
|
|
23
44
|
return createComponent(MarkdownTable, { get data() {
|
|
24
|
-
return sortOptions(Object.values(command.options)).map((option) => {
|
|
45
|
+
return sortOptions(Object.values(command.options)).map(__assignType((option) => {
|
|
25
46
|
return {
|
|
26
47
|
name: option.name.trim(),
|
|
27
48
|
description: option.description.trim(),
|
|
28
49
|
defaultValue: option.default ? String(option.default)?.includes("\"") ? option.default : `\`${option.default}\`` : "",
|
|
29
50
|
required: option.optional || option.default ? "" : "✔"
|
|
30
51
|
};
|
|
31
|
-
}
|
|
52
|
+
}, [
|
|
53
|
+
"option",
|
|
54
|
+
"",
|
|
55
|
+
"P\"2!\"/\""
|
|
56
|
+
]));
|
|
32
57
|
} });
|
|
33
58
|
}
|
|
59
|
+
CommandOptionsDocs.__type = [
|
|
60
|
+
() => __ΩCommandOptionsDocsProps,
|
|
61
|
+
"props",
|
|
62
|
+
"CommandOptionsDocs",
|
|
63
|
+
"Generates the options markdown documentation for a command.",
|
|
64
|
+
"Pn!2\"\"/#?$"
|
|
65
|
+
];
|
|
66
|
+
const __ΩCommandDocsUsageExampleProps = [
|
|
67
|
+
"npm",
|
|
68
|
+
"yarn",
|
|
69
|
+
"pnpm",
|
|
70
|
+
"bun",
|
|
71
|
+
"packageManager",
|
|
72
|
+
"npm",
|
|
73
|
+
"The package manager to generate the usage example for.",
|
|
74
|
+
"CommandTree",
|
|
75
|
+
"command",
|
|
76
|
+
"The command to generate the usage example for.",
|
|
77
|
+
"CommandDocsUsageExampleProps",
|
|
78
|
+
"PP.!.\".#.$J4%8>&?'\"w(4)?*Mw+y"
|
|
79
|
+
];
|
|
34
80
|
/**
|
|
35
81
|
* Generates the markdown documentation for a command.
|
|
36
82
|
*/
|
|
37
83
|
function CommandDocsUsageExample(props) {
|
|
38
84
|
const { packageManager = "npm", command } = props;
|
|
39
|
-
const context = usePowerlines();
|
|
85
|
+
const context = (usePowerlines.Ω = [["Context", "\"w!"]], usePowerlines());
|
|
40
86
|
return [
|
|
41
87
|
createIntrinsic("hbr", {}),
|
|
42
88
|
code`\`\`\`bash `,
|
|
@@ -53,6 +99,29 @@ function CommandDocsUsageExample(props) {
|
|
|
53
99
|
createIntrinsic("hbr", {})
|
|
54
100
|
];
|
|
55
101
|
}
|
|
102
|
+
CommandDocsUsageExample.__type = [
|
|
103
|
+
() => __ΩCommandDocsUsageExampleProps,
|
|
104
|
+
"props",
|
|
105
|
+
"CommandDocsUsageExample",
|
|
106
|
+
"Generates the markdown documentation for a command.",
|
|
107
|
+
"Pn!2\"\"/#?$"
|
|
108
|
+
];
|
|
109
|
+
const __ΩCommandDocsProps = [
|
|
110
|
+
"levelOffset",
|
|
111
|
+
0,
|
|
112
|
+
"The heading level offset to apply to the generated documentation.",
|
|
113
|
+
"CommandTree",
|
|
114
|
+
"command",
|
|
115
|
+
"The command to generate options documentation for.",
|
|
116
|
+
() => __ΩRequired,
|
|
117
|
+
() => __ΩCommandDocsUsageExampleProps,
|
|
118
|
+
"packageManager",
|
|
119
|
+
"usageExamples",
|
|
120
|
+
"`[\"npm\"]`",
|
|
121
|
+
"Optional usage examples to include in the documentation.",
|
|
122
|
+
"CommandDocsProps",
|
|
123
|
+
"P'4!8>\"?#\"w$4%?&n(o'\".)fF4*8>+?,Mw-y"
|
|
124
|
+
];
|
|
56
125
|
/**
|
|
57
126
|
* Generates the markdown documentation for a command.
|
|
58
127
|
*/
|
|
@@ -89,10 +158,16 @@ function CommandDocs(props) {
|
|
|
89
158
|
return createComponent(For, {
|
|
90
159
|
each: usageExamples,
|
|
91
160
|
hardline: true,
|
|
92
|
-
children
|
|
93
|
-
packageManager,
|
|
94
|
-
|
|
95
|
-
|
|
161
|
+
get children() {
|
|
162
|
+
return __assignType((packageManager) => createComponent(CommandDocsUsageExample, {
|
|
163
|
+
packageManager,
|
|
164
|
+
command
|
|
165
|
+
}), [
|
|
166
|
+
"packageManager",
|
|
167
|
+
"",
|
|
168
|
+
"P\"2!\"/\""
|
|
169
|
+
]);
|
|
170
|
+
}
|
|
96
171
|
});
|
|
97
172
|
}
|
|
98
173
|
}),
|
|
@@ -108,12 +183,30 @@ function CommandDocs(props) {
|
|
|
108
183
|
createComponent(Spacing, {})
|
|
109
184
|
];
|
|
110
185
|
}
|
|
186
|
+
CommandDocs.__type = [
|
|
187
|
+
() => __ΩCommandDocsProps,
|
|
188
|
+
"props",
|
|
189
|
+
"CommandDocs",
|
|
190
|
+
"Generates the markdown documentation for a command.",
|
|
191
|
+
"Pn!2\"\"/#?$"
|
|
192
|
+
];
|
|
193
|
+
const __ΩCommandDocsFileProps = [
|
|
194
|
+
() => __ΩPartial,
|
|
195
|
+
"levelOffset",
|
|
196
|
+
0,
|
|
197
|
+
"The heading level offset to apply to the generated documentation.",
|
|
198
|
+
"CommandTree",
|
|
199
|
+
"command",
|
|
200
|
+
"The command to generate documentation for.",
|
|
201
|
+
"CommandDocsFileProps",
|
|
202
|
+
"P!o!\"'4\"8>#?$\"w%4&?'Mw(y"
|
|
203
|
+
];
|
|
111
204
|
/**
|
|
112
205
|
* Generates the markdown documentation file for a command.
|
|
113
206
|
*/
|
|
114
207
|
function CommandDocsFile(props) {
|
|
115
208
|
const { levelOffset = 0, command, frontMatter, ...rest } = props;
|
|
116
|
-
const context = usePowerlines();
|
|
209
|
+
const context = (usePowerlines.Ω = [["Context", "\"w!"]], usePowerlines());
|
|
117
210
|
const usageExamples = memo$1(() => [
|
|
118
211
|
"npm",
|
|
119
212
|
"yarn",
|
|
@@ -151,7 +244,14 @@ function CommandDocsFile(props) {
|
|
|
151
244
|
}
|
|
152
245
|
});
|
|
153
246
|
}
|
|
247
|
+
CommandDocsFile.__type = [
|
|
248
|
+
() => __ΩCommandDocsFileProps,
|
|
249
|
+
"props",
|
|
250
|
+
"CommandDocsFile",
|
|
251
|
+
"Generates the markdown documentation file for a command.",
|
|
252
|
+
"Pn!2\"\"/#?$"
|
|
253
|
+
];
|
|
154
254
|
|
|
155
255
|
//#endregion
|
|
156
|
-
export { CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs };
|
|
256
|
+
export { CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandOptionsDocsProps };
|
|
157
257
|
//# sourceMappingURL=docs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.mjs","names":[],"sources":["../../src/components/docs.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, For, memo, Show } from \"@alloy-js/core\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { MarkdownFileProps } from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownFile } from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownTable } from \"@powerlines/plugin-alloy/markdown/components/markdown-table\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { defu } from \"defu\";\nimport { CommandContext } from \"../contexts/command\";\nimport { getDocsOutputPath } from \"../helpers/docs-helpers\";\nimport { getAppBin } from \"../plugin-utils/context-helpers\";\nimport { sortOptions } from \"../plugin-utils/reflect\";\nimport type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { Usage } from \"./usage\";\n\nexport interface CommandOptionsDocsProps {\n /**\n * The command to generate options documentation for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the options markdown documentation for a command.\n */\nexport function CommandOptionsDocs(props: CommandOptionsDocsProps) {\n const { command } = props;\n if (Object.keys(command.options).length === 0) {\n return code`This command does not have any options.`;\n }\n\n return (\n <MarkdownTable\n data={sortOptions(Object.values(command.options)).map(option => {\n return {\n name: option.name.trim(),\n description: option.description.trim(),\n defaultValue: option.default\n ? String(option.default)?.includes('\"')\n ? option.default\n : `\\`${option.default}\\``\n : \"\",\n required: option.optional || option.default ? \"\" : \"✔\"\n };\n })}\n />\n );\n}\n\nexport interface CommandDocsUsageExampleProps {\n /**\n * The package manager to generate the usage example for.\n *\n * @remarks\n * If not specified, examples for all supported package managers will be generated.\n *\n * @defaultValue \"npm\"\n */\n packageManager?: \"npm\" | \"yarn\" | \"pnpm\" | \"bun\";\n\n /**\n * The command to generate the usage example for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the markdown documentation for a command.\n */\nexport function CommandDocsUsageExample(props: CommandDocsUsageExampleProps) {\n const { packageManager = \"npm\", command } = props;\n\n const context = usePowerlines<Context>();\n\n return (\n <>\n <hbr />\n {code`\\`\\`\\`bash `}\n <hbr />\n <Usage\n command={command}\n bin={getAppBin(context)}\n packageManager={packageManager}\n />\n <hbr />\n {code`\\`\\`\\``}\n <hbr />\n </>\n );\n}\n\nexport interface CommandDocsProps {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n /**\n * The command to generate options documentation for.\n */\n command: CommandTree;\n\n /**\n * Optional usage examples to include in the documentation.\n *\n * @defaultValue `[\"npm\"]`\n */\n usageExamples?: Required<CommandDocsUsageExampleProps>[\"packageManager\"][];\n}\n\n/**\n * Generates the markdown documentation for a command.\n */\nexport function CommandDocs(props: CommandDocsProps) {\n const { levelOffset = 0, command, usageExamples } = props;\n\n return (\n <>\n <Heading level={1 + levelOffset}>{command.title}</Heading>\n <Spacing />\n {code`${command.description}`}\n <Spacing />\n <Heading level={2 + levelOffset}>Usage</Heading>\n <Spacing />\n {code`The ${command.name} command can be executed using the following syntax: `}\n <Spacing />\n <Show\n when={usageExamples && usageExamples.length > 0}\n fallback={\n <CommandDocsUsageExample packageManager=\"npm\" command={command} />\n }>\n <For each={usageExamples!} hardline>\n {packageManager => (\n <CommandDocsUsageExample\n packageManager={packageManager}\n command={command}\n />\n )}\n </For>\n </Show>\n <Spacing />\n <Heading level={2 + levelOffset}>Options</Heading>\n <Spacing />\n {code`The following options are available for the ${\n command.name\n } command:`}\n <Spacing />\n <CommandOptionsDocs command={command} />\n <Spacing />\n </>\n );\n}\n\nexport interface CommandDocsFileProps extends Partial<MarkdownFileProps> {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n /**\n * The command to generate documentation for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the markdown documentation file for a command.\n */\nexport function CommandDocsFile(props: CommandDocsFileProps) {\n const { levelOffset = 0, command, frontMatter, ...rest } = props;\n\n const context = usePowerlines<Context>();\n const usageExamples = memo(\n () => [\"npm\", \"yarn\", \"pnpm\", \"bun\"] as CommandDocsProps[\"usageExamples\"]\n );\n\n return (\n <CommandContext.Provider value={command}>\n <MarkdownFile\n path={joinPaths(getDocsOutputPath(context), `${command.path}.md`)}\n {...rest}\n frontMatter={defu(frontMatter ?? {}, {\n id: command.id,\n name: command.name,\n path: command.path,\n reference: command.reference,\n isVirtual: command.isVirtual,\n title: command.title,\n description: command.description,\n tags: command.tags\n })}>\n <CommandDocs\n levelOffset={levelOffset}\n command={command}\n usageExamples={usageExamples()}\n />\n </MarkdownFile>\n </CommandContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6CA,SAAgB,mBAAmB,OAAgC;CACjE,MAAM,EACJ,YACA;AACF,KAAA,OAAA,KAAA,QAAA,QAAA,CAAA,WAAA;AAGA,QAAG,gBAAA,eAAA,EACD,IAAE,OAAM;AACN,SAAE,YAAO,OAAA,OAAA,QAAA,QAAA,CAAA,CAAA,KAAA,WAAA;AACP,UAAO;IACL,MAAA,OAAa,KAAA,MAAO;IACpB,aAAa,OAAO,YAAC,MAAA;IACrB,cAAW,OAAO,UAAU,OAAU,OAAE,QAAA,EAAA,SAAA,KAAA,GAAA,OAAA,UAAA,KAAA,OAAA,QAAA,MAAA;IACxC,UAAM,OAAO,YAAA,OAAA,UAAA,KAAA;IACd;IACD;IAEL,CAAC;;;;;;CAuBF,MAAA,EACC,iBAAc,OACf,YACI;CACJ,MAAM,UAAE,eAAgC;;;;;;GAElC;;AAEN,WAAO,UAAA,QAAA;;GAEG;GACT,CAAC;EAAE,gBAAkB,OAAA,EAAA,CAAA;EAAA,IAAA;EAAA,gBAAA,OAAA,EAAA,CAAA;EAAA;;;;;;CA8BtB,MAAE,EACA,cAAU,GACX,SACC,kBACA;AACF,QAAA;EAAA,gBAAyB,SAAA;GAC3B,OAAA,IAAA;;AAEE,WAAA,QAAA;;GAEA,CAAA;EAAA,gBAAA,SAAA,EAAA,CAAA;EAAA,WAAA,IAAA,GAAA,QAAA,cAAA;EAAA,gBAAA,SAAA,EAAA,CAAA;EAAA,gBAAA,SAAA;GACF,OAAO,IAAQ;GACb,UAAQ;;;;;;GAER,IAAM,OAAC;AACJ,WAAA,iBAAA,cAAA,SAAA;;GAED,IAAG,WAAS;AACV,WAAO,gBAAS,yBAAa;KAC5B,gBAAS;KACD;KACR,CAAA;;GAEH,IAAG,WAAS;AACV,WAAC,gBAAA,KAAA;KACC,MAAM;KACN,UAAS;KACT,WAAG,mBAAwB,gBAAmB,yBAAqB;MAClE;MACU;MACV,CAAC;KACH,CAAC;;GAEL,CAAC;EAAE,gBAAiB,SAAO,EAAA,CAAA;EAAA,gBAAA,SAAA;GAC1B,OAAO,IAAE;GACT,UAAO;GACR,CAAC;EAAE,gBAAO,SAAA,EAAA,CAAA;EAAA,WAAA,IAAA,+CAAA,QAAA,KAAA,WAAA;EAAA,gBAAA,SAAA,EAAA,CAAA;EAAA,gBAAA,oBAAA,EACD,SACT,CAAC;EAAE,gBAAU,SAAA,EAAA,CAAA;EAAA;;;;;AAsBhB,SAAgB,gBAAM,OAAA;SAElB,cAAA,GACA,SACA,aACF,GAAA,SACF;;CAEE,MAAA,gBAAA,aAAA;EAAA;EAAA;EAAA;EAAA;EAAA,CAAA;AACA,QAAC,gBAAuB,eAAc,UAAW;EACjD,OAAA;EACF,IAAO,WAAS;AACd,UAAQ,gBAAiB,cAAS,WAAsB;AAElD,WAAS,UAAC,kBAAwB,QAAA,EAAA,GAAA,QAAA,KAAA,KAAA;MAEnC,EAAE,MAAM;IACZ,IAAA,cAAA;;MAEM,IAAA,QAAA;MACJ,MAAA,QAAe;MACb,MAAA,QAAA;MACK,WAAW,QAAC;MACZ,WAAI,QAAA;MACR,OAAW,QAAO;MACd,aAAY,QAAA;MACd,MAAM,QAAQ;MACd,CAAA;;IAEF,IAAE,WAAW;AACX,YAAO,gBAAa,aAAA;MACP;MACP;MACL,IAAA,gBAAA;AACF,cAAA,eAAA;;MAEC,CAAA;;IAEH,CAAC,CAAC;;EAEN,CAAC"}
|
|
1
|
+
{"version":3,"file":"docs.mjs","names":[],"sources":["../../src/components/docs.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, For, memo, Show } from \"@alloy-js/core\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { MarkdownFileProps } from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownFile } from \"@powerlines/plugin-alloy/markdown/components/markdown-file\";\nimport { MarkdownTable } from \"@powerlines/plugin-alloy/markdown/components/markdown-table\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { defu } from \"defu\";\nimport { CommandContext } from \"../contexts/command\";\nimport { getDocsOutputPath } from \"../helpers/docs-helpers\";\nimport { getAppBin } from \"../plugin-utils/context-helpers\";\nimport { sortOptions } from \"../plugin-utils/reflect\";\nimport type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { Usage } from \"./usage\";\n\nexport interface CommandOptionsDocsProps {\n /**\n * The command to generate options documentation for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the options markdown documentation for a command.\n */\nexport function CommandOptionsDocs(props: CommandOptionsDocsProps) {\n const { command } = props;\n if (Object.keys(command.options).length === 0) {\n return code`This command does not have any options.`;\n }\n\n return (\n <MarkdownTable\n data={sortOptions(Object.values(command.options)).map(option => {\n return {\n name: option.name.trim(),\n description: option.description.trim(),\n defaultValue: option.default\n ? String(option.default)?.includes('\"')\n ? option.default\n : `\\`${option.default}\\``\n : \"\",\n required: option.optional || option.default ? \"\" : \"✔\"\n };\n })}\n />\n );\n}\n\nexport interface CommandDocsUsageExampleProps {\n /**\n * The package manager to generate the usage example for.\n *\n * @remarks\n * If not specified, examples for all supported package managers will be generated.\n *\n * @defaultValue \"npm\"\n */\n packageManager?: \"npm\" | \"yarn\" | \"pnpm\" | \"bun\";\n\n /**\n * The command to generate the usage example for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the markdown documentation for a command.\n */\nexport function CommandDocsUsageExample(props: CommandDocsUsageExampleProps) {\n const { packageManager = \"npm\", command } = props;\n\n const context = usePowerlines<Context>();\n\n return (\n <>\n <hbr />\n {code`\\`\\`\\`bash `}\n <hbr />\n <Usage\n command={command}\n bin={getAppBin(context)}\n packageManager={packageManager}\n />\n <hbr />\n {code`\\`\\`\\``}\n <hbr />\n </>\n );\n}\n\nexport interface CommandDocsProps {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n /**\n * The command to generate options documentation for.\n */\n command: CommandTree;\n\n /**\n * Optional usage examples to include in the documentation.\n *\n * @defaultValue `[\"npm\"]`\n */\n usageExamples?: Required<CommandDocsUsageExampleProps>[\"packageManager\"][];\n}\n\n/**\n * Generates the markdown documentation for a command.\n */\nexport function CommandDocs(props: CommandDocsProps) {\n const { levelOffset = 0, command, usageExamples } = props;\n\n return (\n <>\n <Heading level={1 + levelOffset}>{command.title}</Heading>\n <Spacing />\n {code`${command.description}`}\n <Spacing />\n <Heading level={2 + levelOffset}>Usage</Heading>\n <Spacing />\n {code`The ${command.name} command can be executed using the following syntax: `}\n <Spacing />\n <Show\n when={usageExamples && usageExamples.length > 0}\n fallback={\n <CommandDocsUsageExample packageManager=\"npm\" command={command} />\n }>\n <For each={usageExamples!} hardline>\n {packageManager => (\n <CommandDocsUsageExample\n packageManager={packageManager}\n command={command}\n />\n )}\n </For>\n </Show>\n <Spacing />\n <Heading level={2 + levelOffset}>Options</Heading>\n <Spacing />\n {code`The following options are available for the ${\n command.name\n } command:`}\n <Spacing />\n <CommandOptionsDocs command={command} />\n <Spacing />\n </>\n );\n}\n\nexport interface CommandDocsFileProps extends Partial<MarkdownFileProps> {\n /**\n * The heading level offset to apply to the generated documentation.\n *\n * @remarks\n * This is useful when nesting the documentation within other markdown files.\n *\n * @defaultValue 0\n */\n levelOffset?: number;\n\n /**\n * The command to generate documentation for.\n */\n command: CommandTree;\n}\n\n/**\n * Generates the markdown documentation file for a command.\n */\nexport function CommandDocsFile(props: CommandDocsFileProps) {\n const { levelOffset = 0, command, frontMatter, ...rest } = props;\n\n const context = usePowerlines<Context>();\n const usageExamples = memo(\n () => [\"npm\", \"yarn\", \"pnpm\", \"bun\"] as CommandDocsProps[\"usageExamples\"]\n );\n\n return (\n <CommandContext.Provider value={command}>\n <MarkdownFile\n path={joinPaths(getDocsOutputPath(context), `${command.path}.md`)}\n {...rest}\n frontMatter={defu(frontMatter ?? {}, {\n id: command.id,\n name: command.name,\n path: command.path,\n reference: command.reference,\n isVirtual: command.isVirtual,\n title: command.title,\n description: command.description,\n tags: command.tags\n })}>\n <CommandDocs\n levelOffset={levelOffset}\n command={command}\n usageExamples={usageExamples()}\n />\n </MarkdownFile>\n </CommandContext.Provider>\n );\n}\n"],"mappings":"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"}
|
|
@@ -11,6 +11,33 @@ let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powe
|
|
|
11
11
|
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
12
12
|
|
|
13
13
|
//#region src/components/exec-builtin.tsx
|
|
14
|
+
const __ΩOmit = [
|
|
15
|
+
"T",
|
|
16
|
+
"K",
|
|
17
|
+
() => __ΩPick,
|
|
18
|
+
() => __ΩExclude,
|
|
19
|
+
"Omit",
|
|
20
|
+
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
21
|
+
];
|
|
22
|
+
const __ΩPick = [
|
|
23
|
+
"T",
|
|
24
|
+
"K",
|
|
25
|
+
"Pick",
|
|
26
|
+
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
27
|
+
];
|
|
28
|
+
const __ΩExclude = [
|
|
29
|
+
"T",
|
|
30
|
+
"U",
|
|
31
|
+
"Exclude",
|
|
32
|
+
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
33
|
+
];
|
|
34
|
+
const __ΩExecBuiltinProps = [
|
|
35
|
+
() => __ΩOmit,
|
|
36
|
+
"id",
|
|
37
|
+
"description",
|
|
38
|
+
"ExecBuiltinProps",
|
|
39
|
+
"P!P.\".#Jo!#Mw$y"
|
|
40
|
+
];
|
|
14
41
|
/**
|
|
15
42
|
* A built-in module for handling command execution in Shell Shock.
|
|
16
43
|
*/
|
|
@@ -708,6 +735,14 @@ return new Promise((resolve, reject) => {
|
|
|
708
735
|
}
|
|
709
736
|
}));
|
|
710
737
|
}
|
|
738
|
+
ExecBuiltin.__type = [
|
|
739
|
+
() => __ΩExecBuiltinProps,
|
|
740
|
+
"props",
|
|
741
|
+
"ExecBuiltin",
|
|
742
|
+
"A built-in module for handling command execution in Shell Shock.",
|
|
743
|
+
"Pn!2\"\"/#?$"
|
|
744
|
+
];
|
|
711
745
|
|
|
712
746
|
//#endregion
|
|
713
|
-
exports.ExecBuiltin = ExecBuiltin;
|
|
747
|
+
exports.ExecBuiltin = ExecBuiltin;
|
|
748
|
+
exports.__ΩExecBuiltinProps = __ΩExecBuiltinProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec-builtin.d.cts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"exec-builtin.d.cts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;;;UAqCiB,gBAAA,SAAyB,IAAA,CACxC,gBAAA;;AADF;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec-builtin.d.mts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"exec-builtin.d.mts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;;;UAqCiB,gBAAA,SAAyB,IAAA,CACxC,gBAAA;;AADF;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA"}
|
|
@@ -8,6 +8,33 @@ import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/buil
|
|
|
8
8
|
import { TSDoc, TSDocDefaultValue, TSDocParam, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
9
9
|
|
|
10
10
|
//#region src/components/exec-builtin.tsx
|
|
11
|
+
const __ΩOmit = [
|
|
12
|
+
"T",
|
|
13
|
+
"K",
|
|
14
|
+
() => __ΩPick,
|
|
15
|
+
() => __ΩExclude,
|
|
16
|
+
"Omit",
|
|
17
|
+
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
18
|
+
];
|
|
19
|
+
const __ΩPick = [
|
|
20
|
+
"T",
|
|
21
|
+
"K",
|
|
22
|
+
"Pick",
|
|
23
|
+
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
24
|
+
];
|
|
25
|
+
const __ΩExclude = [
|
|
26
|
+
"T",
|
|
27
|
+
"U",
|
|
28
|
+
"Exclude",
|
|
29
|
+
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
30
|
+
];
|
|
31
|
+
const __ΩExecBuiltinProps = [
|
|
32
|
+
() => __ΩOmit,
|
|
33
|
+
"id",
|
|
34
|
+
"description",
|
|
35
|
+
"ExecBuiltinProps",
|
|
36
|
+
"P!P.\".#Jo!#Mw$y"
|
|
37
|
+
];
|
|
11
38
|
/**
|
|
12
39
|
* A built-in module for handling command execution in Shell Shock.
|
|
13
40
|
*/
|
|
@@ -705,7 +732,14 @@ return new Promise((resolve, reject) => {
|
|
|
705
732
|
}
|
|
706
733
|
}));
|
|
707
734
|
}
|
|
735
|
+
ExecBuiltin.__type = [
|
|
736
|
+
() => __ΩExecBuiltinProps,
|
|
737
|
+
"props",
|
|
738
|
+
"ExecBuiltin",
|
|
739
|
+
"A built-in module for handling command execution in Shell Shock.",
|
|
740
|
+
"Pn!2\"\"/#?$"
|
|
741
|
+
];
|
|
708
742
|
|
|
709
743
|
//#endregion
|
|
710
|
-
export { ExecBuiltin };
|
|
744
|
+
export { ExecBuiltin, __ΩExecBuiltinProps };
|
|
711
745
|
//# sourceMappingURL=exec-builtin.mjs.map
|