@shell-shock/core 0.17.18 → 0.17.20

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.
Files changed (39) hide show
  1. package/dist/api.d.cts +1 -1
  2. package/dist/api.d.mts +1 -1
  3. package/dist/components/command-validation-logic.cjs +1 -1
  4. package/dist/components/command-validation-logic.mjs +1 -1
  5. package/dist/components/docs.cjs +103 -18
  6. package/dist/components/docs.d.cts +8 -4
  7. package/dist/components/docs.d.cts.map +1 -1
  8. package/dist/components/docs.d.mts +8 -4
  9. package/dist/components/docs.mjs +102 -18
  10. package/dist/components/index.cjs +2 -1
  11. package/dist/components/index.d.cts +2 -2
  12. package/dist/components/index.d.mts +2 -2
  13. package/dist/components/index.mjs +2 -2
  14. package/dist/components/usage.cjs +2 -5
  15. package/dist/components/usage.mjs +2 -5
  16. package/dist/helpers/automd.cjs +133 -10
  17. package/dist/helpers/automd.mjs +132 -12
  18. package/dist/helpers/persistence.cjs +1 -0
  19. package/dist/helpers/persistence.mjs +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.mts +2 -2
  22. package/dist/package.cjs +1 -1
  23. package/dist/package.mjs +1 -1
  24. package/dist/plugin.cjs +27 -22
  25. package/dist/plugin.d.cts.map +1 -1
  26. package/dist/plugin.mjs +29 -24
  27. package/dist/types/index.cjs +2 -2
  28. package/dist/types/index.d.cts +2 -2
  29. package/dist/types/index.d.mts +2 -2
  30. package/dist/types/index.mjs +2 -2
  31. package/package.json +13 -27
  32. package/dist/types/options.cjs +0 -13
  33. package/dist/types/options.cjs.map +0 -1
  34. package/dist/types/options.d.cts +0 -8
  35. package/dist/types/options.d.cts.map +0 -1
  36. package/dist/types/options.d.mts +0 -8
  37. package/dist/types/options.d.mts.map +0 -1
  38. package/dist/types/options.mjs +0 -11
  39. package/dist/types/options.mjs.map +0 -1
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/api.d.ts
2
- declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "docs" | "create" | "clean" | "prepare" | "lint" | "test" | "build" | "deploy">) => Promise<void>;
2
+ declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "prepare" | "create" | "clean" | "lint" | "test" | "build" | "docs" | "deploy">) => Promise<void>;
3
3
  export = _default;
4
4
  //# sourceMappingURL=api.d.cts.map
package/dist/api.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region src/api.d.ts
2
- declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "docs" | "create" | "clean" | "prepare" | "lint" | "test" | "build" | "deploy">) => Promise<void>;
2
+ declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "prepare" | "create" | "clean" | "lint" | "test" | "build" | "docs" | "deploy">) => Promise<void>;
3
3
  //#endregion
4
4
  export { _default as default };
5
5
  //# sourceMappingURL=api.d.mts.map
@@ -3,8 +3,8 @@ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
3
  let _alloy_js_core = require("@alloy-js/core");
4
4
  let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
5
5
  let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
6
- let _alloy_js_typescript = require("@alloy-js/typescript");
7
6
  let _stryke_string_format_list = require("@stryke/string-format/list");
7
+ let _alloy_js_typescript = require("@alloy-js/typescript");
8
8
 
9
9
  //#region src/components/command-validation-logic.tsx
10
10
  function __assignType(fn, args) {
@@ -2,8 +2,8 @@ import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
2
  import { For, Show, code } from "@alloy-js/core";
3
3
  import { camelCase } from "@stryke/string-format/camel-case";
4
4
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
5
- import { ElseIfClause, IfStatement, VarDeclaration } from "@alloy-js/typescript";
6
5
  import { list } from "@stryke/string-format/list";
6
+ import { ElseIfClause, IfStatement, VarDeclaration } from "@alloy-js/typescript";
7
7
 
8
8
  //#region src/components/command-validation-logic.tsx
9
9
  function __assignType(fn, args) {
@@ -13,6 +13,7 @@ let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin
13
13
  let _powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
14
14
  let _powerlines_plugin_alloy_markdown_components_markdown_table = require("@powerlines/plugin-alloy/markdown/components/markdown-table");
15
15
  let _stryke_path_join = require("@stryke/path/join");
16
+ let _stryke_string_format_list = require("@stryke/string-format/list");
16
17
  let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
17
18
 
18
19
  //#region src/components/docs.tsx
@@ -30,14 +31,44 @@ function __assignType(fn, args) {
30
31
  fn.__type = args;
31
32
  return fn;
32
33
  }
33
- const __ΩCommandOptionsDocsProps = [
34
+ const __ΩCommandParametersDocsProps = [
34
35
  "CommandTree",
35
36
  "command",
36
37
  "The command to generate options documentation for.",
37
- "CommandOptionsDocsProps",
38
+ "CommandParametersDocsProps",
38
39
  "P\"w!4\"?#Mw$y"
39
40
  ];
40
41
  /**
42
+ * Generates the arguments markdown documentation for a command.
43
+ */
44
+ function CommandArgumentDocs(props) {
45
+ const { command } = props;
46
+ if (Object.keys(command.options).length === 0) return _alloy_js_core.code`This command does not have any arguments.`;
47
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
48
+ return require_reflect.sortOptions(Object.values(command.options)).reduce(__assignType((ret, option) => {
49
+ ret.push({
50
+ name: option.name.trim(),
51
+ description: option.description.trim(),
52
+ defaultValue: (0, _stryke_type_checks_is_undefined.isUndefined)(option.default) ? "" : JSON.stringify(option.default),
53
+ required: !option.required || option.default ? "" : "✔"
54
+ });
55
+ return ret;
56
+ }, [
57
+ "ret",
58
+ "option",
59
+ "",
60
+ "P\"2!\"2\"\"/#"
61
+ ]), []);
62
+ } });
63
+ }
64
+ CommandArgumentDocs.__type = [
65
+ () => __ΩCommandParametersDocsProps,
66
+ "props",
67
+ "CommandArgumentDocs",
68
+ "Generates the arguments markdown documentation for a command.",
69
+ "Pn!2\"\"/#?$"
70
+ ];
71
+ /**
41
72
  * Generates the options markdown documentation for a command.
42
73
  */
43
74
  function CommandOptionsDocs(props) {
@@ -61,7 +92,7 @@ function CommandOptionsDocs(props) {
61
92
  } });
62
93
  }
63
94
  CommandOptionsDocs.__type = [
64
- () => __ΩCommandOptionsDocsProps,
95
+ () => __ΩCommandParametersDocsProps,
65
96
  "props",
66
97
  "CommandOptionsDocs",
67
98
  "Generates the options markdown documentation for a command.",
@@ -88,15 +119,20 @@ const __ΩCommandDocsUsageExampleProps = [
88
119
  * Generates the markdown documentation for a command.
89
120
  */
90
121
  function CommandDocsUsageExample(props) {
91
- const { packageManager = "npm", command, expand = true } = props;
122
+ const { packageManager = "npm", command, expand = false } = props;
92
123
  const context = (_powerlines_plugin_alloy_core_contexts_context.usePowerlines.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)());
93
124
  return [
94
125
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
95
126
  when: expand,
96
- fallback: _alloy_js_core.code`\`\`\`bash `,
97
- children: _alloy_js_core.code`<details>
98
- <summary>Using ${packageManager}</summary>
99
- \`\`\`bash `
127
+ fallback: _alloy_js_core.code`\`\`\`sh `,
128
+ get children() {
129
+ return [
130
+ _alloy_js_core.code`<details>
131
+ <summary>Using ${packageManager}:</summary>`,
132
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
133
+ _alloy_js_core.code`\`\`\`sh `
134
+ ];
135
+ }
100
136
  }),
101
137
  (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
102
138
  (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_usage.Usage, {
@@ -110,10 +146,14 @@ function CommandDocsUsageExample(props) {
110
146
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
111
147
  when: expand,
112
148
  fallback: _alloy_js_core.code`\`\`\` `,
113
- children: _alloy_js_core.code`\`\`\`
114
- </details> `
115
- }),
116
- (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
149
+ get children() {
150
+ return [
151
+ _alloy_js_core.code`\`\`\``,
152
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
153
+ _alloy_js_core.code`</details>`
154
+ ];
155
+ }
156
+ })
117
157
  ];
118
158
  }
119
159
  CommandDocsUsageExample.__type = [
@@ -148,18 +188,40 @@ function CommandDocs(props) {
148
188
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_markdown.Heading, {
149
189
  level: 1 + levelOffset,
150
190
  get children() {
151
- return command.title;
191
+ return `${command.title}${command.tags.includes("deprecated") ? " (Deprecated)" : command.tags.includes("beta") ? " (Beta)" : command.tags.includes("alpha") ? " (Alpha)" : command.tags.includes("experimental") ? " (Experimental)" : ""}`;
152
192
  }
153
193
  }),
154
194
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
155
195
  (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`${command.description}`),
196
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
197
+ get when() {
198
+ return command.alias && command.alias.length > 0;
199
+ },
200
+ get children() {
201
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
202
+ get when() {
203
+ return command.alias.length > 1;
204
+ },
205
+ get fallback() {
206
+ return _alloy_js_core.code`The \`${command.name}\` command can also be invoked using the alias \`${command.alias[0]}\`.`;
207
+ },
208
+ get children() {
209
+ return _alloy_js_core.code`The \`${command.name}\` command can also be invoked using the following aliases: ${(0, _stryke_string_format_list.list)(command.alias.map(__assignType((alias) => `\`${alias}\``, [
210
+ "alias",
211
+ "",
212
+ "P\"2!\"/\""
213
+ ])), { conjunction: "or" })}.`;
214
+ }
215
+ })];
216
+ }
217
+ }),
156
218
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
157
219
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_markdown.Heading, {
158
220
  level: 2 + levelOffset,
159
221
  children: "Usage"
160
222
  }),
161
223
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
162
- (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The ${command.name} command can be executed using the following syntax: `),
224
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The \`${command.name}\` command can be executed using the following syntax: `),
163
225
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
164
226
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
165
227
  get when() {
@@ -174,11 +236,14 @@ function CommandDocs(props) {
174
236
  get children() {
175
237
  return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
176
238
  each: usageExamples,
177
- hardline: true,
239
+ doubleHardline: true,
178
240
  get children() {
179
241
  return __assignType((packageManager) => (0, _alloy_js_core_jsx_runtime.createComponent)(CommandDocsUsageExample, {
180
242
  packageManager,
181
- command
243
+ command,
244
+ get expand() {
245
+ return usageExamples && usageExamples.length > 1;
246
+ }
182
247
  }), [
183
248
  "packageManager",
184
249
  "",
@@ -189,12 +254,31 @@ function CommandDocs(props) {
189
254
  }
190
255
  }),
191
256
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
257
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
258
+ get when() {
259
+ return command.args.length > 0;
260
+ },
261
+ get children() {
262
+ return [
263
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
264
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_markdown.Heading, {
265
+ level: 2 + levelOffset,
266
+ children: "Positional Arguments"
267
+ }),
268
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
269
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The following positional arguments are available for the \`${command.name}\` command:`),
270
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
271
+ (0, _alloy_js_core_jsx_runtime.createComponent)(CommandArgumentDocs, { command }),
272
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
273
+ ];
274
+ }
275
+ }),
192
276
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_markdown.Heading, {
193
277
  level: 2 + levelOffset,
194
278
  children: "Options"
195
279
  }),
196
280
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
197
- (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The following options are available for the ${command.name} command:`),
281
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The following options are available for the \`${command.name}\` command:`),
198
282
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
199
283
  (0, _alloy_js_core_jsx_runtime.createComponent)(CommandOptionsDocs, { command }),
200
284
  (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
@@ -270,6 +354,7 @@ CommandDocsFile.__type = [
270
354
  ];
271
355
 
272
356
  //#endregion
357
+ exports.CommandArgumentDocs = CommandArgumentDocs;
273
358
  exports.CommandDocs = CommandDocs;
274
359
  exports.CommandDocsFile = CommandDocsFile;
275
360
  exports.CommandDocsUsageExample = CommandDocsUsageExample;
@@ -277,5 +362,5 @@ exports.CommandOptionsDocs = CommandOptionsDocs;
277
362
  exports.__ΩCommandDocsFileProps = __ΩCommandDocsFileProps;
278
363
  exports.__ΩCommandDocsProps = __ΩCommandDocsProps;
279
364
  exports.__ΩCommandDocsUsageExampleProps = __ΩCommandDocsUsageExampleProps;
280
- exports.__ΩCommandOptionsDocsProps = __ΩCommandOptionsDocsProps;
365
+ exports.__ΩCommandParametersDocsProps = __ΩCommandParametersDocsProps;
281
366
  //# sourceMappingURL=docs.cjs.map
@@ -2,16 +2,20 @@ import { CommandTree } from "../types/command.cjs";
2
2
  import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
3
 
4
4
  //#region src/components/docs.d.ts
5
- interface CommandOptionsDocsProps {
5
+ interface CommandParametersDocsProps {
6
6
  /**
7
7
  * The command to generate options documentation for.
8
8
  */
9
9
  command: CommandTree;
10
10
  }
11
+ /**
12
+ * Generates the arguments markdown documentation for a command.
13
+ */
14
+ declare function CommandArgumentDocs(props: CommandParametersDocsProps): import("@alloy-js/core").Children;
11
15
  /**
12
16
  * Generates the options markdown documentation for a command.
13
17
  */
14
- declare function CommandOptionsDocs(props: CommandOptionsDocsProps): import("@alloy-js/core").Children;
18
+ declare function CommandOptionsDocs(props: CommandParametersDocsProps): import("@alloy-js/core").Children;
15
19
  interface CommandDocsUsageExampleProps {
16
20
  /**
17
21
  * The package manager to generate the usage example for.
@@ -29,7 +33,7 @@ interface CommandDocsUsageExampleProps {
29
33
  /**
30
34
  * Whether to add expand/collapse details tags around the usage example. This is useful for hiding long usage examples by default.
31
35
  *
32
- * @defaultValue true
36
+ * @defaultValue false
33
37
  */
34
38
  expand?: boolean;
35
39
  }
@@ -82,5 +86,5 @@ interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
82
86
  */
83
87
  declare function CommandDocsFile(props: CommandDocsFileProps): import("@alloy-js/core").Children;
84
88
  //#endregion
85
- export { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps };
89
+ export { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParametersDocsProps };
86
90
  //# sourceMappingURL=docs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;UAoCiB,uBAAA;;AAAjB;;EAIE,OAAA,EAAS,WAAW;AAAA;AAAA;AAMtB;;AANsB,iBAMN,kBAAA,CAAmB,KAAA,EAAO,uBAAuB,4BAAA,QAAA;AAAA,UAgChD,4BAAA;EAhCyB;;;;AAAuB;AAgCjE;;;EASE,cAAA;EAAA;;;EAKA,OAAA,EAAS,WAAW;EAOd;AAAA;AAMR;;;EANE,MAAA;AAAA;;;;iBAMc,uBAAA,CAAwB,KAAA,EAAO,4BAA4B,4BAAA,QAAA;AAAA,UA4B1D,gBAAA;EAAgB;;;;;;;;EAS/B,WAAA;EAKS;;;EAAT,OAAA,EAAS,WAAA;EAO4C;AAAA;AAMvD;;;EANE,aAAA,GAAgB,QAAA,CAAS,4BAAA;AAAA;;;;iBAMX,WAAA,CAAY,KAAA,EAAO,gBAAgB,4BAAA,QAAA;AAAA,UAwClC,oBAAA,SAA6B,OAAA,CAAQ,iBAAA;EAAhB;;;;;;;;EASpC,WAAA;EAAA;;;EAKA,OAAA,EAAS,WAAA;AAAA;AAMX;;;AAAA,iBAAgB,eAAA,CAAgB,KAAA,EAAO,oBAAoB,4BAAA,QAAA"}
1
+ {"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";;;;UAqCiB,0BAAA;;AAAjB;;EAIE,OAAA,EAAS,WAAW;AAAA;AAAA;AAMtB;;AANsB,iBAMN,mBAAA,CAAoB,KAAA,EAAO,0BAA0B,4BAAA,QAAA;;;;iBAmCrD,kBAAA,CAAmB,KAAA,EAAO,0BAA0B,4BAAA,QAAA;AAAA,UAgCnD,4BAAA;EAnEoD;AAmCrE;;;;;;;EAyCE,cAAA;EAzCkE;AAgCpE;;EAcE,OAAA,EAAS,WAAW;EAAA;;;;;EAOpB,MAAA;AAAA;AAMF;;;AAAA,iBAAgB,uBAAA,CAAwB,KAAA,EAAO,4BAA4B,4BAAA,QAAA;AAAA,UA6B1D,gBAAA;EA7BuB;;;AAAmC;AA6B3E;;;;EASE,WAAA;EAYgB;;;EAPhB,OAAA,EAAS,WAAA;EAAT;;;;;EAOA,aAAA,GAAgB,QAAA,CAAS,4BAAA;AAAA;AAM3B;;;AAAA,iBAAgB,WAAA,CAAY,KAAA,EAAO,gBAAgB,4BAAA,QAAA;AAAA,UAyElC,oBAAA,SAA6B,OAAA,CAAQ,iBAAA;EAzE1B;;;AAAuB;AAyEnD;;;;EASE,WAAA;EAT4C;;;EAc5C,OAAA,EAAS,WAAA;AAAA;;;;iBAMK,eAAA,CAAgB,KAAA,EAAO,oBAAoB,4BAAA,QAAA"}
@@ -2,16 +2,20 @@ import { CommandTree } from "../types/command.mjs";
2
2
  import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
3
3
 
4
4
  //#region src/components/docs.d.ts
5
- interface CommandOptionsDocsProps {
5
+ interface CommandParametersDocsProps {
6
6
  /**
7
7
  * The command to generate options documentation for.
8
8
  */
9
9
  command: CommandTree;
10
10
  }
11
+ /**
12
+ * Generates the arguments markdown documentation for a command.
13
+ */
14
+ declare function CommandArgumentDocs(props: CommandParametersDocsProps): import("@alloy-js/core").Children;
11
15
  /**
12
16
  * Generates the options markdown documentation for a command.
13
17
  */
14
- declare function CommandOptionsDocs(props: CommandOptionsDocsProps): import("@alloy-js/core").Children;
18
+ declare function CommandOptionsDocs(props: CommandParametersDocsProps): import("@alloy-js/core").Children;
15
19
  interface CommandDocsUsageExampleProps {
16
20
  /**
17
21
  * The package manager to generate the usage example for.
@@ -29,7 +33,7 @@ interface CommandDocsUsageExampleProps {
29
33
  /**
30
34
  * Whether to add expand/collapse details tags around the usage example. This is useful for hiding long usage examples by default.
31
35
  *
32
- * @defaultValue true
36
+ * @defaultValue false
33
37
  */
34
38
  expand?: boolean;
35
39
  }
@@ -82,5 +86,5 @@ interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
82
86
  */
83
87
  declare function CommandDocsFile(props: CommandDocsFileProps): import("@alloy-js/core").Children;
84
88
  //#endregion
85
- export { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps };
89
+ export { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParametersDocsProps };
86
90
  //# sourceMappingURL=docs.d.mts.map
@@ -12,6 +12,7 @@ import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
12
12
  import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
13
13
  import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/markdown-table";
14
14
  import { joinPaths } from "@stryke/path/join";
15
+ import { list } from "@stryke/string-format/list";
15
16
  import { isUndefined } from "@stryke/type-checks/is-undefined";
16
17
 
17
18
  //#region src/components/docs.tsx
@@ -29,14 +30,44 @@ function __assignType(fn, args) {
29
30
  fn.__type = args;
30
31
  return fn;
31
32
  }
32
- const __ΩCommandOptionsDocsProps = [
33
+ const __ΩCommandParametersDocsProps = [
33
34
  "CommandTree",
34
35
  "command",
35
36
  "The command to generate options documentation for.",
36
- "CommandOptionsDocsProps",
37
+ "CommandParametersDocsProps",
37
38
  "P\"w!4\"?#Mw$y"
38
39
  ];
39
40
  /**
41
+ * Generates the arguments markdown documentation for a command.
42
+ */
43
+ function CommandArgumentDocs(props) {
44
+ const { command } = props;
45
+ if (Object.keys(command.options).length === 0) return code`This command does not have any arguments.`;
46
+ return createComponent(MarkdownTable, { get data() {
47
+ return sortOptions(Object.values(command.options)).reduce(__assignType((ret, option) => {
48
+ ret.push({
49
+ name: option.name.trim(),
50
+ description: option.description.trim(),
51
+ defaultValue: isUndefined(option.default) ? "" : JSON.stringify(option.default),
52
+ required: !option.required || option.default ? "" : "✔"
53
+ });
54
+ return ret;
55
+ }, [
56
+ "ret",
57
+ "option",
58
+ "",
59
+ "P\"2!\"2\"\"/#"
60
+ ]), []);
61
+ } });
62
+ }
63
+ CommandArgumentDocs.__type = [
64
+ () => __ΩCommandParametersDocsProps,
65
+ "props",
66
+ "CommandArgumentDocs",
67
+ "Generates the arguments markdown documentation for a command.",
68
+ "Pn!2\"\"/#?$"
69
+ ];
70
+ /**
40
71
  * Generates the options markdown documentation for a command.
41
72
  */
42
73
  function CommandOptionsDocs(props) {
@@ -60,7 +91,7 @@ function CommandOptionsDocs(props) {
60
91
  } });
61
92
  }
62
93
  CommandOptionsDocs.__type = [
63
- () => __ΩCommandOptionsDocsProps,
94
+ () => __ΩCommandParametersDocsProps,
64
95
  "props",
65
96
  "CommandOptionsDocs",
66
97
  "Generates the options markdown documentation for a command.",
@@ -87,15 +118,20 @@ const __ΩCommandDocsUsageExampleProps = [
87
118
  * Generates the markdown documentation for a command.
88
119
  */
89
120
  function CommandDocsUsageExample(props) {
90
- const { packageManager = "npm", command, expand = true } = props;
121
+ const { packageManager = "npm", command, expand = false } = props;
91
122
  const context = (usePowerlines.Ω = [["Context", "\"w!"]], usePowerlines());
92
123
  return [
93
124
  createComponent(Show, {
94
125
  when: expand,
95
- fallback: code`\`\`\`bash `,
96
- children: code`<details>
97
- <summary>Using ${packageManager}</summary>
98
- \`\`\`bash `
126
+ fallback: code`\`\`\`sh `,
127
+ get children() {
128
+ return [
129
+ code`<details>
130
+ <summary>Using ${packageManager}:</summary>`,
131
+ createComponent(Spacing, {}),
132
+ code`\`\`\`sh `
133
+ ];
134
+ }
99
135
  }),
100
136
  createIntrinsic("hbr", {}),
101
137
  createComponent(Usage, {
@@ -109,10 +145,14 @@ function CommandDocsUsageExample(props) {
109
145
  createComponent(Show, {
110
146
  when: expand,
111
147
  fallback: code`\`\`\` `,
112
- children: code`\`\`\`
113
- </details> `
114
- }),
115
- createIntrinsic("hbr", {})
148
+ get children() {
149
+ return [
150
+ code`\`\`\``,
151
+ createComponent(Spacing, {}),
152
+ code`</details>`
153
+ ];
154
+ }
155
+ })
116
156
  ];
117
157
  }
118
158
  CommandDocsUsageExample.__type = [
@@ -147,18 +187,40 @@ function CommandDocs(props) {
147
187
  createComponent(Heading, {
148
188
  level: 1 + levelOffset,
149
189
  get children() {
150
- return command.title;
190
+ return `${command.title}${command.tags.includes("deprecated") ? " (Deprecated)" : command.tags.includes("beta") ? " (Beta)" : command.tags.includes("alpha") ? " (Alpha)" : command.tags.includes("experimental") ? " (Experimental)" : ""}`;
151
191
  }
152
192
  }),
153
193
  createComponent(Spacing, {}),
154
194
  memo(() => code`${command.description}`),
195
+ createComponent(Show, {
196
+ get when() {
197
+ return command.alias && command.alias.length > 0;
198
+ },
199
+ get children() {
200
+ return [createComponent(Spacing, {}), createComponent(Show, {
201
+ get when() {
202
+ return command.alias.length > 1;
203
+ },
204
+ get fallback() {
205
+ return code`The \`${command.name}\` command can also be invoked using the alias \`${command.alias[0]}\`.`;
206
+ },
207
+ get children() {
208
+ return code`The \`${command.name}\` command can also be invoked using the following aliases: ${list(command.alias.map(__assignType((alias) => `\`${alias}\``, [
209
+ "alias",
210
+ "",
211
+ "P\"2!\"/\""
212
+ ])), { conjunction: "or" })}.`;
213
+ }
214
+ })];
215
+ }
216
+ }),
155
217
  createComponent(Spacing, {}),
156
218
  createComponent(Heading, {
157
219
  level: 2 + levelOffset,
158
220
  children: "Usage"
159
221
  }),
160
222
  createComponent(Spacing, {}),
161
- memo(() => code`The ${command.name} command can be executed using the following syntax: `),
223
+ memo(() => code`The \`${command.name}\` command can be executed using the following syntax: `),
162
224
  createComponent(Spacing, {}),
163
225
  createComponent(Show, {
164
226
  get when() {
@@ -173,11 +235,14 @@ function CommandDocs(props) {
173
235
  get children() {
174
236
  return createComponent(For, {
175
237
  each: usageExamples,
176
- hardline: true,
238
+ doubleHardline: true,
177
239
  get children() {
178
240
  return __assignType((packageManager) => createComponent(CommandDocsUsageExample, {
179
241
  packageManager,
180
- command
242
+ command,
243
+ get expand() {
244
+ return usageExamples && usageExamples.length > 1;
245
+ }
181
246
  }), [
182
247
  "packageManager",
183
248
  "",
@@ -188,12 +253,31 @@ function CommandDocs(props) {
188
253
  }
189
254
  }),
190
255
  createComponent(Spacing, {}),
256
+ createComponent(Show, {
257
+ get when() {
258
+ return command.args.length > 0;
259
+ },
260
+ get children() {
261
+ return [
262
+ createComponent(Spacing, {}),
263
+ createComponent(Heading, {
264
+ level: 2 + levelOffset,
265
+ children: "Positional Arguments"
266
+ }),
267
+ createComponent(Spacing, {}),
268
+ memo(() => code`The following positional arguments are available for the \`${command.name}\` command:`),
269
+ createComponent(Spacing, {}),
270
+ createComponent(CommandArgumentDocs, { command }),
271
+ createComponent(Spacing, {})
272
+ ];
273
+ }
274
+ }),
191
275
  createComponent(Heading, {
192
276
  level: 2 + levelOffset,
193
277
  children: "Options"
194
278
  }),
195
279
  createComponent(Spacing, {}),
196
- memo(() => code`The following options are available for the ${command.name} command:`),
280
+ memo(() => code`The following options are available for the \`${command.name}\` command:`),
197
281
  createComponent(Spacing, {}),
198
282
  createComponent(CommandOptionsDocs, { command }),
199
283
  createComponent(Spacing, {})
@@ -269,5 +353,5 @@ CommandDocsFile.__type = [
269
353
  ];
270
354
 
271
355
  //#endregion
272
- export { CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandOptionsDocsProps };
356
+ export { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandParametersDocsProps };
273
357
  //# sourceMappingURL=docs.mjs.map
@@ -12,6 +12,7 @@ exports.ArgsUtilities = require_components_state_builtin.ArgsUtilities;
12
12
  exports.ArgumentsParserLogic = require_components_options_parser_logic.ArgumentsParserLogic;
13
13
  exports.BooleanInputParserLogic = require_components_helpers.BooleanInputParserLogic;
14
14
  exports.ColorSupportUtilities = require_components_utils_builtin.ColorSupportUtilities;
15
+ exports.CommandArgumentDocs = require_components_docs.CommandArgumentDocs;
15
16
  exports.CommandDocs = require_components_docs.CommandDocs;
16
17
  exports.CommandDocsFile = require_components_docs.CommandDocsFile;
17
18
  exports.CommandDocsUsageExample = require_components_docs.CommandDocsUsageExample;
@@ -45,7 +46,7 @@ exports.__ΩBooleanInputParserLogicProps = require_components_helpers.__ΩBoolea
45
46
  exports.__ΩCommandDocsFileProps = require_components_docs.__ΩCommandDocsFileProps;
46
47
  exports.__ΩCommandDocsProps = require_components_docs.__ΩCommandDocsProps;
47
48
  exports.__ΩCommandDocsUsageExampleProps = require_components_docs.__ΩCommandDocsUsageExampleProps;
48
- exports.__ΩCommandOptionsDocsProps = require_components_docs.__ΩCommandOptionsDocsProps;
49
+ exports.__ΩCommandParametersDocsProps = require_components_docs.__ΩCommandParametersDocsProps;
49
50
  exports.__ΩCommandParserLogicProps = require_components_options_parser_logic.__ΩCommandParserLogicProps;
50
51
  exports.__ΩCommandValidationLogicProps = require_components_command_validation_logic.__ΩCommandValidationLogicProps;
51
52
  exports.__ΩDynamicSegmentsParserLogicProps = require_components_options_parser_logic.__ΩDynamicSegmentsParserLogicProps;
@@ -1,9 +1,9 @@
1
1
  import { CommandValidationLogic, CommandValidationLogicProps } from "./command-validation-logic.cjs";
2
- import { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps } from "./docs.cjs";
2
+ import { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParametersDocsProps } from "./docs.cjs";
3
3
  import { ExecBuiltin, ExecBuiltinProps } from "./exec-builtin.cjs";
4
4
  import { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.cjs";
5
5
  import { ArgumentsParserLogic, ArgumentsParserLogicProps, CommandParserLogic, CommandParserLogicProps, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps } from "./options-parser-logic.cjs";
6
6
  import { ArgsUtilities, ContextUtilities, GlobalTypeDefinitions, StateBuiltin, StateBuiltinProps } from "./state-builtin.cjs";
7
7
  import { Usage, UsageProps } from "./usage.cjs";
8
8
  import { ColorSupportUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, ResolveModuleFunctionDeclaration, TerminalSizeDeclaration, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.cjs";
9
- export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParameterType, CommandParserLogic, CommandParserLogicProps, CommandValidationLogic, CommandValidationLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, ExecBuiltin, ExecBuiltinProps, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, ResolveModuleFunctionDeclaration, StateBuiltin, StateBuiltinProps, TerminalSizeDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
9
+ export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParameterType, CommandParametersDocsProps, CommandParserLogic, CommandParserLogicProps, CommandValidationLogic, CommandValidationLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, ExecBuiltin, ExecBuiltinProps, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, ResolveModuleFunctionDeclaration, StateBuiltin, StateBuiltinProps, TerminalSizeDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
@@ -1,9 +1,9 @@
1
1
  import { CommandValidationLogic, CommandValidationLogicProps } from "./command-validation-logic.mjs";
2
- import { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps } from "./docs.mjs";
2
+ import { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParametersDocsProps } from "./docs.mjs";
3
3
  import { ExecBuiltin, ExecBuiltinProps } from "./exec-builtin.mjs";
4
4
  import { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.mjs";
5
5
  import { ArgumentsParserLogic, ArgumentsParserLogicProps, CommandParserLogic, CommandParserLogicProps, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps } from "./options-parser-logic.mjs";
6
6
  import { ArgsUtilities, ContextUtilities, GlobalTypeDefinitions, StateBuiltin, StateBuiltinProps } from "./state-builtin.mjs";
7
7
  import { Usage, UsageProps } from "./usage.mjs";
8
8
  import { ColorSupportUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, ResolveModuleFunctionDeclaration, TerminalSizeDeclaration, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.mjs";
9
- export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParameterType, CommandParserLogic, CommandParserLogicProps, CommandValidationLogic, CommandValidationLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, ExecBuiltin, ExecBuiltinProps, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, ResolveModuleFunctionDeclaration, StateBuiltin, StateBuiltinProps, TerminalSizeDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
9
+ export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandParameterType, CommandParametersDocsProps, CommandParserLogic, CommandParserLogicProps, CommandValidationLogic, CommandValidationLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, ExecBuiltin, ExecBuiltinProps, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, ResolveModuleFunctionDeclaration, StateBuiltin, StateBuiltinProps, TerminalSizeDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
@@ -1,5 +1,5 @@
1
1
  import { Usage, __ΩUsageProps } from "./usage.mjs";
2
- import { CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandOptionsDocsProps } from "./docs.mjs";
2
+ import { CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandParametersDocsProps } from "./docs.mjs";
3
3
  import { ExecBuiltin, __ΩExecBuiltinProps } from "./exec-builtin.mjs";
4
4
  import { BooleanInputParserLogic, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, __ΩBooleanInputParserLogicProps } from "./helpers.mjs";
5
5
  import { ArgumentsParserLogic, CommandParserLogic, DynamicSegmentsParserLogic, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic, __ΩArgumentsParserLogicProps, __ΩCommandParserLogicProps, __ΩDynamicSegmentsParserLogicProps, __ΩOptionsMemberParserConditionProps, __ΩOptionsMemberParserLogicProps, __ΩOptionsParserLogicProps } from "./options-parser-logic.mjs";
@@ -7,4 +7,4 @@ import { ArgsUtilities, ContextUtilities, GlobalTypeDefinitions, StateBuiltin, _
7
7
  import { ColorSupportUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, ResolveModuleFunctionDeclaration, TerminalSizeDeclaration, UtilsBuiltin, __ΩUtilsBuiltinProps } from "./utils-builtin.mjs";
8
8
  import { CommandValidationLogic, __ΩCommandValidationLogicProps } from "./command-validation-logic.mjs";
9
9
 
10
- export { ArgsUtilities, ArgumentsParserLogic, BooleanInputParserLogic, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, CommandParameterType, CommandParserLogic, CommandValidationLogic, ContextUtilities, DynamicSegmentsParserLogic, EnvSupportUtilities, ExecBuiltin, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic, ResolveModuleFunctionDeclaration, StateBuiltin, TerminalSizeDeclaration, Usage, UtilsBuiltin, __ΩArgumentsParserLogicProps, __ΩBooleanInputParserLogicProps, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandOptionsDocsProps, __ΩCommandParserLogicProps, __ΩCommandValidationLogicProps, __ΩDynamicSegmentsParserLogicProps, __ΩExecBuiltinProps, __ΩOptionsMemberParserConditionProps, __ΩOptionsMemberParserLogicProps, __ΩOptionsParserLogicProps, __ΩStateBuiltinProps, __ΩUsageProps, __ΩUtilsBuiltinProps };
10
+ export { ArgsUtilities, ArgumentsParserLogic, BooleanInputParserLogic, ColorSupportUtilities, CommandArgumentDocs, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, CommandParameterType, CommandParserLogic, CommandValidationLogic, ContextUtilities, DynamicSegmentsParserLogic, EnvSupportUtilities, ExecBuiltin, FindSuggestionsDeclaration, GlobalTypeDefinitions, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic, ResolveModuleFunctionDeclaration, StateBuiltin, TerminalSizeDeclaration, Usage, UtilsBuiltin, __ΩArgumentsParserLogicProps, __ΩBooleanInputParserLogicProps, __ΩCommandDocsFileProps, __ΩCommandDocsProps, __ΩCommandDocsUsageExampleProps, __ΩCommandParametersDocsProps, __ΩCommandParserLogicProps, __ΩCommandValidationLogicProps, __ΩDynamicSegmentsParserLogicProps, __ΩExecBuiltinProps, __ΩOptionsMemberParserConditionProps, __ΩOptionsMemberParserLogicProps, __ΩOptionsParserLogicProps, __ΩStateBuiltinProps, __ΩUsageProps, __ΩUtilsBuiltinProps };
@@ -54,20 +54,17 @@ function Usage(props) {
54
54
  "segment",
55
55
  "",
56
56
  "P\"2!\"/\""
57
- ])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? command.args.map(__assignType((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
57
+ ])).join(" ")}` : ""}${Object.values(command.children).length > 0 ? " <commands>" : ""}${command.args.length > 0 ? ` ${command.args.map(__assignType((param) => `<${(0, _stryke_string_format_snake_case.snakeCase)(param.name)}${(param.type === "string" || param.type === "number") && param.variadic ? "..." : ""}>`, [
58
58
  "param",
59
59
  "",
60
60
  "P\"2!\"/\""
61
- ])).join(" ") : ""} [options]`),
61
+ ])).join(" ")}` : ""} [options]`),
62
62
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
63
63
  get when() {
64
64
  return command.args.length > 0;
65
65
  },
66
66
  get children() {
67
67
  return [
68
- (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
69
- (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
70
- _alloy_js_core.code`# or with options before arguments: `,
71
68
  (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
72
69
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Switch, { get children() {
73
70
  return [