@shell-shock/preset-cli 0.1.5 → 0.1.6

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 CHANGED
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.1.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.1.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,11 +1,11 @@
1
- import * as _alloy_js_core1 from "@alloy-js/core";
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
2
  import { BannerFunctionDeclarationProps } from "@shell-shock/preset-script/components/banner-function-declaration";
3
3
 
4
4
  //#region src/components/banner-function-declaration.d.ts
5
5
  /**
6
6
  * A component to generate the `banner` function in the `shell-shock:console` builtin module.
7
7
  */
8
- declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): _alloy_js_core1.Children;
8
+ declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): _alloy_js_core0.Children;
9
9
  //#endregion
10
10
  export { BannerFunctionDeclaration };
11
11
  //# sourceMappingURL=banner-function-declaration.d.cts.map
@@ -1,11 +1,11 @@
1
- import * as _alloy_js_core1 from "@alloy-js/core";
1
+ import * as _alloy_js_core0 from "@alloy-js/core";
2
2
  import { BannerFunctionDeclarationProps } from "@shell-shock/preset-script/components/banner-function-declaration";
3
3
 
4
4
  //#region src/components/banner-function-declaration.d.ts
5
5
  /**
6
6
  * A component to generate the `banner` function in the `shell-shock:console` builtin module.
7
7
  */
8
- declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): _alloy_js_core1.Children;
8
+ declare function BannerFunctionDeclaration(props: BannerFunctionDeclarationProps): _alloy_js_core0.Children;
9
9
  //#endregion
10
10
  export { BannerFunctionDeclaration };
11
11
  //# sourceMappingURL=banner-function-declaration.d.mts.map
@@ -3,13 +3,16 @@ const require_components_banner_function_declaration = require('./banner-functio
3
3
  const require_components_virtual_command_entry = require('./virtual-command-entry.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __alloy_js_core = require("@alloy-js/core");
6
+ let __alloy_js_typescript = require("@alloy-js/typescript");
6
7
  let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
7
8
  let __shell_shock_core_plugin_utils_context_helpers = require("@shell-shock/core/plugin-utils/context-helpers");
9
+ let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
8
10
  let __powerlines_plugin_alloy_typescript_components_entry_file = require("@powerlines/plugin-alloy/typescript/components/entry-file");
9
11
  let __shell_shock_preset_script_components_command_entry = require("@shell-shock/preset-script/components/command-entry");
10
12
  let __stryke_path_find = require("@stryke/path/find");
11
13
  let __stryke_path_join = require("@stryke/path/join");
12
14
  let __stryke_path_replace = require("@stryke/path/replace");
15
+ let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
13
16
  let __stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
14
17
  let defu = require("defu");
15
18
  defu = require_rolldown_runtime.__toESM(defu);
@@ -69,7 +72,158 @@ function CommandEntry(props) {
69
72
  (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_banner_function_declaration.BannerFunctionDeclaration, { command }),
70
73
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
71
74
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
72
- (0, __alloy_js_core_jsx_runtime.createComponent)(__shell_shock_preset_script_components_command_entry.CommandHandlerDeclaration, { command })
75
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__shell_shock_preset_script_components_command_entry.CommandHandlerDeclaration, {
76
+ command,
77
+ get children() {
78
+ return [
79
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
80
+ name: "failures",
81
+ type: "string[]",
82
+ initializer: __alloy_js_core.code`[];`
83
+ }),
84
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
85
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
86
+ get each() {
87
+ return Object.values(command.options ?? {});
88
+ },
89
+ doubleHardline: true,
90
+ children: (option) => [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
91
+ get when() {
92
+ return !option.optional;
93
+ },
94
+ get children() {
95
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
96
+ get condition() {
97
+ return __alloy_js_core.code`!options${option.name.includes("?") ? `["${option.name}"]` : `.${(0, __stryke_string_format_camel_case.camelCase)(option.name)}`}`;
98
+ },
99
+ get children() {
100
+ return __alloy_js_core.code`failures.push("Missing required \\"${option.name}\\" option");`;
101
+ }
102
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
103
+ get when() {
104
+ return (option.kind === __powerlines_deepkit_vendor_type.ReflectionKind.string || option.kind === __powerlines_deepkit_vendor_type.ReflectionKind.number) && option.variadic;
105
+ },
106
+ get children() {
107
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ElseIfClause, {
108
+ get condition() {
109
+ return __alloy_js_core.code`options${option.name.includes("?") ? `["${option.name}"]` : `.${(0, __stryke_string_format_camel_case.camelCase)(option.name)}`}.length === 0`;
110
+ },
111
+ get children() {
112
+ return __alloy_js_core.code`failures.push("No values were provided to the required \\"${option.name}\\" array option");`;
113
+ }
114
+ });
115
+ }
116
+ })];
117
+ }
118
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
119
+ get when() {
120
+ return option.kind === __powerlines_deepkit_vendor_type.ReflectionKind.number;
121
+ },
122
+ get children() {
123
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
124
+ get when() {
125
+ return option.variadic;
126
+ },
127
+ get fallback() {
128
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
129
+ get condition() {
130
+ return __alloy_js_core.code`options${option.name.includes("?") ? `["${option.name}"]` : `.${(0, __stryke_string_format_camel_case.camelCase)(option.name)}`} && Number.isNaN(options${option.name.includes("?") ? `["${option.name}"]` : `.${(0, __stryke_string_format_camel_case.camelCase)(option.name)}`})`;
131
+ },
132
+ get children() {
133
+ return __alloy_js_core.code`failures.push("Invalid numeric value provided for the \\"${option.name}\\" option");`;
134
+ }
135
+ });
136
+ },
137
+ get children() {
138
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
139
+ get condition() {
140
+ return __alloy_js_core.code`options${option.name.includes("?") ? `["${option.name}"]` : `.${(0, __stryke_string_format_camel_case.camelCase)(option.name)}`}.some(value => Number.isNaN(value))`;
141
+ },
142
+ get children() {
143
+ return __alloy_js_core.code`failures.push("Invalid numeric value provided in the \\"${option.name}\\" array option");`;
144
+ }
145
+ });
146
+ }
147
+ });
148
+ }
149
+ })]
150
+ }),
151
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
152
+ (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
153
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
154
+ get each() {
155
+ return command.arguments;
156
+ },
157
+ doubleHardline: true,
158
+ children: (argument) => [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
159
+ get when() {
160
+ return !argument.optional;
161
+ },
162
+ get children() {
163
+ return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
164
+ get condition() {
165
+ return __alloy_js_core.code`!${(0, __stryke_string_format_camel_case.camelCase)(argument.name)}`;
166
+ },
167
+ get children() {
168
+ return __alloy_js_core.code`failures.push("Missing required \\"${argument.name}\\" positional argument");`;
169
+ }
170
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
171
+ get when() {
172
+ return (argument.kind === __powerlines_deepkit_vendor_type.ReflectionKind.string || argument.kind === __powerlines_deepkit_vendor_type.ReflectionKind.number) && argument.variadic;
173
+ },
174
+ get children() {
175
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.ElseIfClause, {
176
+ get condition() {
177
+ return __alloy_js_core.code`${(0, __stryke_string_format_camel_case.camelCase)(argument.name)}.length === 0`;
178
+ },
179
+ get children() {
180
+ return __alloy_js_core.code`failures.push("No values were provided to the required \\"${argument.name}\\" array positional argument");`;
181
+ }
182
+ });
183
+ }
184
+ })];
185
+ }
186
+ }), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
187
+ get when() {
188
+ return argument.kind === __powerlines_deepkit_vendor_type.ReflectionKind.number;
189
+ },
190
+ get children() {
191
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
192
+ get when() {
193
+ return argument.variadic;
194
+ },
195
+ get fallback() {
196
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
197
+ get condition() {
198
+ return __alloy_js_core.code`${(0, __stryke_string_format_camel_case.camelCase)(argument.name)} && Number.isNaN(${(0, __stryke_string_format_camel_case.camelCase)(argument.name)})`;
199
+ },
200
+ get children() {
201
+ return __alloy_js_core.code`failures.push("Invalid numeric value provided for the \\"${argument.name}\\" positional argument");`;
202
+ }
203
+ });
204
+ },
205
+ get children() {
206
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
207
+ get condition() {
208
+ return __alloy_js_core.code`${(0, __stryke_string_format_camel_case.camelCase)(argument.name)}.some(value => Number.isNaN(value))`;
209
+ },
210
+ get children() {
211
+ return __alloy_js_core.code`failures.push("Invalid numeric value provided in the \\"${argument.name}\\" array positional argument");`;
212
+ }
213
+ });
214
+ }
215
+ });
216
+ }
217
+ })]
218
+ }),
219
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.IfStatement, {
220
+ condition: __alloy_js_core.code`failures.length > 0`,
221
+ children: __alloy_js_core.code`error(colors.text.message.description.error("The following validation failures were found while processing the user provided input, and must be corrected before the command line process can be executed: \\n\\n") + failures.map(failure => colors.text.body.secondary(" - " + failure)).join("\\n"));
222
+ options.help = true; `
223
+ })
224
+ ];
225
+ }
226
+ })
73
227
  ];
74
228
  }
75
229
  })), (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.For, {
@@ -1 +1 @@
1
- {"version":3,"file":"command-entry.d.cts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;UAkCiB,iBAAA,SAA0B,KACzC;WAGS;;AAJX;;;AAA2C,iBAU3B,YAAA,CAV2B,KAAA,EAUP,iBAVO,CAAA,EAUU,eAAA,CAAA,QAVV"}
1
+ {"version":3,"file":"command-entry.d.cts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;UA6CiB,iBAAA,SAA0B,KACzC;WAGS;;AAJX;;;AAA2C,iBAU3B,YAAA,CAV2B,KAAA,EAUP,iBAVO,CAAA,EAUU,eAAA,CAAA,QAVV"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _alloy_js_core1 from "@alloy-js/core";
2
2
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
3
3
  import { CommandTree } from "@shell-shock/core/types/command";
4
4
 
@@ -9,7 +9,7 @@ interface CommandEntryProps extends Omit<EntryFileProps, "path" | "typeDefinitio
9
9
  /**
10
10
  * The command entry point for the Shell Shock project.
11
11
  */
12
- declare function CommandEntry(props: CommandEntryProps): _alloy_js_core0.Children;
12
+ declare function CommandEntry(props: CommandEntryProps): _alloy_js_core1.Children;
13
13
  //#endregion
14
14
  export { CommandEntry, CommandEntryProps };
15
15
  //# sourceMappingURL=command-entry.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-entry.d.mts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;UAkCiB,iBAAA,SAA0B,KACzC;WAGS;;AAJX;;;AAA2C,iBAU3B,YAAA,CAV2B,KAAA,EAUP,iBAVO,CAAA,EAUU,eAAA,CAAA,QAVV"}
1
+ {"version":3,"file":"command-entry.d.mts","names":[],"sources":["../../src/components/command-entry.tsx"],"sourcesContent":[],"mappings":";;;;;UA6CiB,iBAAA,SAA0B,KACzC;WAGS;;AAJX;;;AAA2C,iBAU3B,YAAA,CAV2B,KAAA,EAUP,iBAVO,CAAA,EAUU,eAAA,CAAA,QAVV"}
@@ -1,14 +1,17 @@
1
1
  import { BannerFunctionDeclaration } from "./banner-function-declaration.mjs";
2
2
  import { VirtualCommandEntry } from "./virtual-command-entry.mjs";
3
3
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
4
- import { For, Show, computed } from "@alloy-js/core";
4
+ import { For, Show, code, computed } from "@alloy-js/core";
5
+ import { ElseIfClause, IfStatement, VarDeclaration } from "@alloy-js/typescript";
5
6
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
6
7
  import { isDynamicPathSegment } from "@shell-shock/core/plugin-utils/context-helpers";
8
+ import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
7
9
  import { EntryFile } from "@powerlines/plugin-alloy/typescript/components/entry-file";
8
10
  import { CommandHandlerDeclaration } from "@shell-shock/preset-script/components/command-entry";
9
11
  import { findFilePath, relativePath } from "@stryke/path/find";
10
12
  import { joinPaths } from "@stryke/path/join";
11
13
  import { replaceExtension } from "@stryke/path/replace";
14
+ import { camelCase } from "@stryke/string-format/camel-case";
12
15
  import { pascalCase } from "@stryke/string-format/pascal-case";
13
16
  import defu from "defu";
14
17
 
@@ -67,7 +70,158 @@ function CommandEntry(props) {
67
70
  createComponent(BannerFunctionDeclaration, { command }),
68
71
  createIntrinsic("hbr", {}),
69
72
  createIntrinsic("hbr", {}),
70
- createComponent(CommandHandlerDeclaration, { command })
73
+ createComponent(CommandHandlerDeclaration, {
74
+ command,
75
+ get children() {
76
+ return [
77
+ createComponent(VarDeclaration, {
78
+ name: "failures",
79
+ type: "string[]",
80
+ initializer: code`[];`
81
+ }),
82
+ createIntrinsic("hbr", {}),
83
+ createComponent(For, {
84
+ get each() {
85
+ return Object.values(command.options ?? {});
86
+ },
87
+ doubleHardline: true,
88
+ children: (option) => [createComponent(Show, {
89
+ get when() {
90
+ return !option.optional;
91
+ },
92
+ get children() {
93
+ return [createComponent(IfStatement, {
94
+ get condition() {
95
+ return code`!options${option.name.includes("?") ? `["${option.name}"]` : `.${camelCase(option.name)}`}`;
96
+ },
97
+ get children() {
98
+ return code`failures.push("Missing required \\"${option.name}\\" option");`;
99
+ }
100
+ }), createComponent(Show, {
101
+ get when() {
102
+ return (option.kind === ReflectionKind.string || option.kind === ReflectionKind.number) && option.variadic;
103
+ },
104
+ get children() {
105
+ return createComponent(ElseIfClause, {
106
+ get condition() {
107
+ return code`options${option.name.includes("?") ? `["${option.name}"]` : `.${camelCase(option.name)}`}.length === 0`;
108
+ },
109
+ get children() {
110
+ return code`failures.push("No values were provided to the required \\"${option.name}\\" array option");`;
111
+ }
112
+ });
113
+ }
114
+ })];
115
+ }
116
+ }), createComponent(Show, {
117
+ get when() {
118
+ return option.kind === ReflectionKind.number;
119
+ },
120
+ get children() {
121
+ return createComponent(Show, {
122
+ get when() {
123
+ return option.variadic;
124
+ },
125
+ get fallback() {
126
+ return createComponent(IfStatement, {
127
+ get condition() {
128
+ return code`options${option.name.includes("?") ? `["${option.name}"]` : `.${camelCase(option.name)}`} && Number.isNaN(options${option.name.includes("?") ? `["${option.name}"]` : `.${camelCase(option.name)}`})`;
129
+ },
130
+ get children() {
131
+ return code`failures.push("Invalid numeric value provided for the \\"${option.name}\\" option");`;
132
+ }
133
+ });
134
+ },
135
+ get children() {
136
+ return createComponent(IfStatement, {
137
+ get condition() {
138
+ return code`options${option.name.includes("?") ? `["${option.name}"]` : `.${camelCase(option.name)}`}.some(value => Number.isNaN(value))`;
139
+ },
140
+ get children() {
141
+ return code`failures.push("Invalid numeric value provided in the \\"${option.name}\\" array option");`;
142
+ }
143
+ });
144
+ }
145
+ });
146
+ }
147
+ })]
148
+ }),
149
+ createIntrinsic("hbr", {}),
150
+ createIntrinsic("hbr", {}),
151
+ createComponent(For, {
152
+ get each() {
153
+ return command.arguments;
154
+ },
155
+ doubleHardline: true,
156
+ children: (argument) => [createComponent(Show, {
157
+ get when() {
158
+ return !argument.optional;
159
+ },
160
+ get children() {
161
+ return [createComponent(IfStatement, {
162
+ get condition() {
163
+ return code`!${camelCase(argument.name)}`;
164
+ },
165
+ get children() {
166
+ return code`failures.push("Missing required \\"${argument.name}\\" positional argument");`;
167
+ }
168
+ }), createComponent(Show, {
169
+ get when() {
170
+ return (argument.kind === ReflectionKind.string || argument.kind === ReflectionKind.number) && argument.variadic;
171
+ },
172
+ get children() {
173
+ return createComponent(ElseIfClause, {
174
+ get condition() {
175
+ return code`${camelCase(argument.name)}.length === 0`;
176
+ },
177
+ get children() {
178
+ return code`failures.push("No values were provided to the required \\"${argument.name}\\" array positional argument");`;
179
+ }
180
+ });
181
+ }
182
+ })];
183
+ }
184
+ }), createComponent(Show, {
185
+ get when() {
186
+ return argument.kind === ReflectionKind.number;
187
+ },
188
+ get children() {
189
+ return createComponent(Show, {
190
+ get when() {
191
+ return argument.variadic;
192
+ },
193
+ get fallback() {
194
+ return createComponent(IfStatement, {
195
+ get condition() {
196
+ return code`${camelCase(argument.name)} && Number.isNaN(${camelCase(argument.name)})`;
197
+ },
198
+ get children() {
199
+ return code`failures.push("Invalid numeric value provided for the \\"${argument.name}\\" positional argument");`;
200
+ }
201
+ });
202
+ },
203
+ get children() {
204
+ return createComponent(IfStatement, {
205
+ get condition() {
206
+ return code`${camelCase(argument.name)}.some(value => Number.isNaN(value))`;
207
+ },
208
+ get children() {
209
+ return code`failures.push("Invalid numeric value provided in the \\"${argument.name}\\" array positional argument");`;
210
+ }
211
+ });
212
+ }
213
+ });
214
+ }
215
+ })]
216
+ }),
217
+ createComponent(IfStatement, {
218
+ condition: code`failures.length > 0`,
219
+ children: code`error(colors.text.message.description.error("The following validation failures were found while processing the user provided input, and must be corrected before the command line process can be executed: \\n\\n") + failures.map(failure => colors.text.body.secondary(" - " + failure)).join("\\n"));
220
+ options.help = true; `
221
+ })
222
+ ];
223
+ }
224
+ })
71
225
  ];
72
226
  }
73
227
  })), createComponent(For, {
@@ -1 +1 @@
1
- {"version":3,"file":"command-entry.mjs","names":["computed","For","Show","usePowerlines","EntryFile","isDynamicPathSegment","CommandHandlerDeclaration","findFilePath","relativePath","joinPaths","replaceExtension","pascalCase","defu","BannerFunctionDeclaration","VirtualCommandEntry","CommandEntry","props","command","imports","builtinImports","rest","context","filePath","segments","filter","segment","join","commandSourcePath","entryPath","value","entry","input","file","typeDefinition","output","id","_$createComponent","_$mergeProps","path","name","env","console","utils","children","_$createIntrinsic","each","Object","values","child","when","isVirtual","fallback"],"sources":["../../src/components/command-entry.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 { computed, For, Show } from \"@alloy-js/core\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { isDynamicPathSegment } from \"@shell-shock/core/plugin-utils/context-helpers\";\nimport type { CommandTree } from \"@shell-shock/core/types/command\";\nimport { CommandHandlerDeclaration } from \"@shell-shock/preset-script/components/command-entry\";\nimport { findFilePath, relativePath } from \"@stryke/path/find\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension } from \"@stryke/path/replace\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport defu from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\nimport { BannerFunctionDeclaration } from \"./banner-function-declaration\";\nimport { VirtualCommandEntry } from \"./virtual-command-entry\";\n\nexport interface CommandEntryProps extends Omit<\n EntryFileProps,\n \"path\" | \"typeDefinition\"\n> {\n command: CommandTree;\n}\n\n/**\n * The command entry point for the Shell Shock project.\n */\nexport function CommandEntry(props: CommandEntryProps) {\n const { command, imports, builtinImports, ...rest } = props;\n\n const context = usePowerlines<CLIPresetContext>();\n const filePath = computed(() =>\n joinPaths(\n command.segments\n .filter(segment => !isDynamicPathSegment(segment))\n .join(\"/\"),\n \"index.ts\"\n )\n );\n const commandSourcePath = computed(() =>\n replaceExtension(\n relativePath(\n joinPaths(context.entryPath, findFilePath(filePath.value)),\n command.entry.input?.file || command.entry.file\n )\n )\n );\n const typeDefinition = computed(() => ({\n ...command.entry,\n output: command.id\n }));\n\n return (\n <>\n <EntryFile\n {...rest}\n path={filePath.value}\n typeDefinition={typeDefinition.value}\n imports={defu(imports ?? {}, {\n [commandSourcePath.value]: `handle${pascalCase(command.name)}`\n })}\n builtinImports={defu(builtinImports ?? {}, {\n env: [\"env\", \"isCI\", \"isDevelopment\", \"isDebug\"],\n console: [\n \"debug\",\n \"warn\",\n \"error\",\n \"table\",\n \"colors\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\"\n ],\n utils: [\n \"getArgs\",\n \"hasFlag\",\n \"isMinimal\",\n \"isUnicodeSupported\",\n \"internal_commandContext\"\n ]\n })}>\n <BannerFunctionDeclaration command={command} />\n <hbr />\n <hbr />\n <CommandHandlerDeclaration command={command} />\n </EntryFile>\n <For each={Object.values(command.children)}>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4CA,SAAgBe,aAAaC,OAA0B;CACrD,MAAM,EAAEC,SAASC,SAASC,gBAAgB,GAAGC,SAASJ;CAEtD,MAAMK,UAAUlB,eAAiC;CACjD,MAAMmB,WAAWtB,eACfS,UACEQ,QAAQM,SACLC,QAAOC,YAAW,CAACpB,qBAAqBoB,QAAQ,CAAC,CACjDC,KAAK,IAAI,EACZ,WAEJ,CAAC;CACD,MAAMC,oBAAoB3B,eACxBU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A;;GAAA,CAAA;EAEtC,CAAA,CAAA"}
1
+ {"version":3,"file":"command-entry.mjs","names":["code","computed","For","Show","ElseIfClause","IfStatement","VarDeclaration","ReflectionKind","usePowerlines","EntryFile","isDynamicPathSegment","CommandHandlerDeclaration","findFilePath","relativePath","joinPaths","replaceExtension","camelCase","pascalCase","defu","BannerFunctionDeclaration","VirtualCommandEntry","CommandEntry","props","command","imports","builtinImports","rest","context","filePath","segments","filter","segment","join","commandSourcePath","entryPath","value","entry","input","file","typeDefinition","output","id","_$createComponent","_$mergeProps","path","name","env","console","utils","children","_$createIntrinsic","type","initializer","each","Object","values","options","doubleHardline","option","when","optional","condition","includes","kind","string","number","variadic","fallback","arguments","argument","child","isVirtual"],"sources":["../../src/components/command-entry.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, computed, For, Show } from \"@alloy-js/core\";\nimport {\n ElseIfClause,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { ReflectionKind } from \"@powerlines/deepkit/vendor/type\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { EntryFile } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { isDynamicPathSegment } from \"@shell-shock/core/plugin-utils/context-helpers\";\nimport type {\n CommandTree,\n NumberCommandArgument,\n NumberCommandOption\n} from \"@shell-shock/core/types/command\";\nimport { CommandHandlerDeclaration } from \"@shell-shock/preset-script/components/command-entry\";\nimport { findFilePath, relativePath } from \"@stryke/path/find\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension } from \"@stryke/path/replace\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport defu from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\nimport { BannerFunctionDeclaration } from \"./banner-function-declaration\";\nimport { VirtualCommandEntry } from \"./virtual-command-entry\";\n\nexport interface CommandEntryProps extends Omit<\n EntryFileProps,\n \"path\" | \"typeDefinition\"\n> {\n command: CommandTree;\n}\n\n/**\n * The command entry point for the Shell Shock project.\n */\nexport function CommandEntry(props: CommandEntryProps) {\n const { command, imports, builtinImports, ...rest } = props;\n\n const context = usePowerlines<CLIPresetContext>();\n const filePath = computed(() =>\n joinPaths(\n command.segments\n .filter(segment => !isDynamicPathSegment(segment))\n .join(\"/\"),\n \"index.ts\"\n )\n );\n const commandSourcePath = computed(() =>\n replaceExtension(\n relativePath(\n joinPaths(context.entryPath, findFilePath(filePath.value)),\n command.entry.input?.file || command.entry.file\n )\n )\n );\n const typeDefinition = computed(() => ({\n ...command.entry,\n output: command.id\n }));\n\n return (\n <>\n <EntryFile\n {...rest}\n path={filePath.value}\n typeDefinition={typeDefinition.value}\n imports={defu(imports ?? {}, {\n [commandSourcePath.value]: `handle${pascalCase(command.name)}`\n })}\n builtinImports={defu(builtinImports ?? {}, {\n env: [\"env\", \"isCI\", \"isDevelopment\", \"isDebug\"],\n console: [\n \"debug\",\n \"warn\",\n \"error\",\n \"table\",\n \"colors\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\"\n ],\n utils: [\n \"getArgs\",\n \"hasFlag\",\n \"isMinimal\",\n \"isUnicodeSupported\",\n \"internal_commandContext\"\n ]\n })}>\n <BannerFunctionDeclaration command={command} />\n <hbr />\n <hbr />\n <CommandHandlerDeclaration command={command}>\n <VarDeclaration\n name=\"failures\"\n type=\"string[]\"\n initializer={code`[];`}\n />\n <hbr />\n <For each={Object.values(command.options ?? {})} doubleHardline>\n {option => (\n <>\n <Show when={!option.optional}>\n <IfStatement\n condition={code`!options${\n option.name.includes(\"?\")\n ? `[\"${option.name}\"]`\n : `.${camelCase(option.name)}`\n }`}>\n {code`failures.push(\"Missing required \\\\\"${option.name}\\\\\" option\");`}\n </IfStatement>\n <Show\n when={\n (option.kind === ReflectionKind.string ||\n option.kind === ReflectionKind.number) &&\n option.variadic\n }>\n <ElseIfClause\n condition={code`options${\n option.name.includes(\"?\")\n ? `[\"${option.name}\"]`\n : `.${camelCase(option.name)}`\n }.length === 0`}>\n {code`failures.push(\"No values were provided to the required \\\\\"${\n option.name\n }\\\\\" array option\");`}\n </ElseIfClause>\n </Show>\n </Show>\n <Show when={option.kind === ReflectionKind.number}>\n <Show\n when={(option as NumberCommandOption).variadic}\n fallback={\n <IfStatement\n condition={code`options${\n option.name.includes(\"?\")\n ? `[\"${option.name}\"]`\n : `.${camelCase(option.name)}`\n } && Number.isNaN(options${\n option.name.includes(\"?\")\n ? `[\"${option.name}\"]`\n : `.${camelCase(option.name)}`\n })`}>\n {code`failures.push(\"Invalid numeric value provided for the \\\\\"${\n option.name\n }\\\\\" option\");`}\n </IfStatement>\n }>\n <IfStatement\n condition={code`options${\n option.name.includes(\"?\")\n ? `[\"${option.name}\"]`\n : `.${camelCase(option.name)}`\n }.some(value => Number.isNaN(value))`}>\n {code`failures.push(\"Invalid numeric value provided in the \\\\\"${\n option.name\n }\\\\\" array option\");`}\n </IfStatement>\n </Show>\n </Show>\n </>\n )}\n </For>\n <hbr />\n <hbr />\n <For each={command.arguments} doubleHardline>\n {argument => (\n <>\n <Show when={!argument.optional}>\n <IfStatement condition={code`!${camelCase(argument.name)}`}>\n {code`failures.push(\"Missing required \\\\\"${\n argument.name\n }\\\\\" positional argument\");`}\n </IfStatement>\n <Show\n when={\n (argument.kind === ReflectionKind.string ||\n argument.kind === ReflectionKind.number) &&\n argument.variadic\n }>\n <ElseIfClause\n condition={code`${camelCase(argument.name)}.length === 0`}>\n {code`failures.push(\"No values were provided to the required \\\\\"${\n argument.name\n }\\\\\" array positional argument\");`}\n </ElseIfClause>\n </Show>\n </Show>\n <Show when={argument.kind === ReflectionKind.number}>\n <Show\n when={(argument as NumberCommandArgument).variadic}\n fallback={\n <IfStatement\n condition={code`${camelCase(\n argument.name\n )} && Number.isNaN(${camelCase(argument.name)})`}>\n {code`failures.push(\"Invalid numeric value provided for the \\\\\"${\n argument.name\n }\\\\\" positional argument\");`}\n </IfStatement>\n }>\n <IfStatement\n condition={code`${camelCase(argument.name)}.some(value => Number.isNaN(value))`}>\n {code`failures.push(\"Invalid numeric value provided in the \\\\\"${\n argument.name\n }\\\\\" array positional argument\");`}\n </IfStatement>\n </Show>\n </Show>\n </>\n )}\n </For>\n <IfStatement condition={code`failures.length > 0`}>\n {code`error(colors.text.message.description.error(\"The following validation failures were found while processing the user provided input, and must be corrected before the command line process can be executed: \\\\n\\\\n\") + failures.map(failure => colors.text.body.secondary(\" - \" + failure)).join(\"\\\\n\"));\n options.help = true; `}\n </IfStatement>\n </CommandHandlerDeclaration>\n </EntryFile>\n <For each={Object.values(command.children)}>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuDA,SAAgBqB,aAAaC,OAA0B;CACrD,MAAM,EAAEC,SAASC,SAASC,gBAAgB,GAAGC,SAASJ;CAEtD,MAAMK,UAAUnB,eAAiC;CACjD,MAAMoB,WAAW3B,eACfa,UACES,QAAQM,SACLC,QAAOC,YAAW,CAACrB,qBAAqBqB,QAAQ,CAAC,CACjDC,KAAK,IAAI,EACZ,WAEJ,CAAC;CACD,MAAMC,oBAAoBhC,eACxBc,iBACEF,aACEC,UAAUa,QAAQO,WAAWtB,aAAagB,SAASO,MAAM,CAAC,EAC1DZ,QAAQa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AAAA,mBAAGU,SAAmCH;;WAAQ,IAClDC,WAAQ;AAAA,mBAAAzB,gBACLrC,aAAW;aAAA,IACVwD,YAAS;AAAA,qBAAE7D,IAAI,GAAGgB,UAChBqD,SAASxB,KACV,CAAA,mBAAoB7B,UAAUqD,SAASxB,KAAK,CAAA;;aAAG,IAAAI,WAAA;AAAA,qBAC/CjD,IAAI,4DACHqE,SAASxB,KAAI;;aACa,CAAA;;WAAA,IAAAI,WAAA;AAAA,mBAAAP,gBAG/BrC,aAAW;aAAA,IACVwD,YAAS;AAAA,qBAAE7D,IAAI,GAAGgB,UAAUqD,SAASxB,KAAK,CAAA;;aAAqC,IAAAI,WAAA;AAAA,qBAC9EjD,IAAI,2DACHqE,SAASxB,KAAI;;aACmB,CAAA;;WAAA,CAAA;;SAAA,CAAA,CAAA;QAK3C,CAAA;OAAAH,gBAEFrC,aAAW;QAACwD,WAAW7D,IAAI;QAAqBiD,UAC9CjD,IAAI;;QACiB,CAAA;OAAA;;KAAA,CAAA;IAAA;;EAAA,CAAA,CAAA,EAAA0C,gBAI3BxC,KAAG;EAAA,IAACmD,OAAI;AAAA,UAAEC,OAAOC,OAAOhC,QAAQ0B,SAAS;;EAAAA,WACvCqB,UAAK5B,gBACHvC,MAAI;GAAA,IACHwD,OAAI;AAAA,WAAEW,MAAMC;;GAAS,IACrBJ,WAAQ;AAAA,WAAAzB,gBAAGrB,cAAY,EAACE,SAAS+C,OAAK,CAAA;;GAAA,IAAArB,WAAA;AAAA,WAAAP,gBACrCtB,qBAAmB,EAACG,SAAS+C,OAAK,CAAA;;GAAA,CAAA;EAEtC,CAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _alloy_js_core1 from "@alloy-js/core";
2
2
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
3
3
  import { CommandTree } from "@shell-shock/core/types/command";
4
4
 
@@ -9,7 +9,7 @@ interface VirtualCommandEntryProps extends Omit<EntryFileProps, "path" | "typeDe
9
9
  /**
10
10
  * The virtual command entry point for the Shell Shock project.
11
11
  */
12
- declare function VirtualCommandEntry(props: VirtualCommandEntryProps): _alloy_js_core0.Children;
12
+ declare function VirtualCommandEntry(props: VirtualCommandEntryProps): _alloy_js_core1.Children;
13
13
  //#endregion
14
14
  export { VirtualCommandEntry, VirtualCommandEntryProps };
15
15
  //# sourceMappingURL=virtual-command-entry.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/preset-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
6
6
  "repository": {
@@ -156,9 +156,9 @@
156
156
  "@powerlines/deepkit": "^0.6.51",
157
157
  "@powerlines/plugin-alloy": "^0.20.15",
158
158
  "@powerlines/plugin-plugin": "^0.12.222",
159
- "@shell-shock/core": "^0.8.0",
160
- "@shell-shock/plugin-theme": "^0.0.17",
161
- "@shell-shock/preset-script": "^0.5.0",
159
+ "@shell-shock/core": "^0.8.1",
160
+ "@shell-shock/plugin-theme": "^0.0.18",
161
+ "@shell-shock/preset-script": "^0.6.0",
162
162
  "@stryke/path": "0.26.4",
163
163
  "@stryke/string-format": "0.13.7",
164
164
  "cfonts": "^3.3.1",
@@ -193,5 +193,5 @@
193
193
  "./package.json": "./package.json"
194
194
  }
195
195
  },
196
- "gitHead": "a3710248496a9b6251c18d6ee4af3587a0dc1fa5"
196
+ "gitHead": "2d179aff07a4c04d5ff4a96ceed082077a51a7e6"
197
197
  }