@shell-shock/plugin-help 0.2.26 → 0.2.29

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 (34) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -1
  2. package/dist/components/display.cjs +276 -18
  3. package/dist/components/display.d.cts +6 -7
  4. package/dist/components/display.d.cts.map +1 -1
  5. package/dist/components/display.d.mts +6 -7
  6. package/dist/components/display.d.mts.map +1 -1
  7. package/dist/components/display.mjs +270 -18
  8. package/dist/components/display.mjs.map +1 -1
  9. package/dist/components/help-builtin.cjs +99 -1
  10. package/dist/components/help-builtin.d.cts +1 -2
  11. package/dist/components/help-builtin.d.cts.map +1 -1
  12. package/dist/components/help-builtin.d.mts +2 -3
  13. package/dist/components/help-builtin.d.mts.map +1 -1
  14. package/dist/components/help-builtin.mjs +96 -1
  15. package/dist/components/help-builtin.mjs.map +1 -1
  16. package/dist/components/help-command.cjs +151 -1
  17. package/dist/components/help-command.d.cts +3 -5
  18. package/dist/components/help-command.d.cts.map +1 -1
  19. package/dist/components/help-command.d.mts +3 -5
  20. package/dist/components/help-command.d.mts.map +1 -1
  21. package/dist/components/help-command.mjs +149 -1
  22. package/dist/components/help-command.mjs.map +1 -1
  23. package/dist/components/index.cjs +14 -1
  24. package/dist/components/index.mjs +5 -1
  25. package/dist/index.cjs +97 -1
  26. package/dist/index.d.cts +1 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/index.mjs +91 -1
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/types/index.mjs +1 -1
  32. package/dist/types/plugin.d.mts.map +1 -1
  33. package/dist/types/plugin.mjs +1 -1
  34. package/package.json +18 -18
@@ -1 +1,29 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+
29
+ exports.__toESM = __toESM;
@@ -1,22 +1,280 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`@alloy-js/core/jsx-runtime`),t=require(`@alloy-js/core`),n=require(`@shell-shock/core/plugin-utils`),r=require(`@stryke/type-checks/is-set-string`),i=require(`@powerlines/plugin-alloy/core/components/spacing`),a=require(`@powerlines/plugin-alloy/core/contexts/context`),o=require(`@shell-shock/core`),s=require(`@shell-shock/plugin-theme/contexts/theme`),c=require(`@stryke/string-format/camel-case`),l=require(`@stryke/string-format/kebab-case`),u=require(`@stryke/string-format/snake-case`);function d(r){let{command:i,indent:c=2}=r,l=(0,a.usePowerlines)(),d=(0,s.useTheme)();return[(0,e.memo)(()=>t.code`
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
+ let _alloy_js_core = require("@alloy-js/core");
4
+ let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
5
+ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
6
+ let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
7
+ let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
8
+ let _shell_shock_plugin_theme_contexts_theme = require("@shell-shock/plugin-theme/contexts/theme");
9
+ let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
10
+ let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
11
+ let _stryke_string_format_snake_case = require("@stryke/string-format/snake-case");
12
+
13
+ //#region src/components/display.tsx
14
+ /**
15
+ * A component that generates the usage display for a command.
16
+ */
17
+ function HelpUsageDisplay(props) {
18
+ const { command, indent = 2 } = props;
19
+ const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
20
+ const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
21
+ return [
22
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
2
23
  writeLine(
3
- textColors.body.secondary(\`\${textColors.usage.bin("$_ ${(0,n.getAppBin)(l)}")}${i.segments.length>0?` ${i.segments.map(e=>`\${textColors.usage.${(0,n.isDynamicPathSegment)(e)?`dynamic`:`command`}("${(0,n.isDynamicPathSegment)(e)?`[${(0,u.snakeCase)((0,n.getDynamicPathSegmentName)(e))}]`:e}")}`).join(` `)}`:``}${Object.values(i.children).length>0?' ${textColors.usage.dynamic("[command]")}':``}${i.args.length>0?` ${i.args.map(e=>`\${textColors.usage.args("<${(0,u.snakeCase)((e.kind===o.CommandParameterKinds.string||e.kind===o.CommandParameterKinds.number)&&e.choices&&e.choices.length>0?e.choices.join(`|`):e.kind===o.CommandParameterKinds.string&&e.format?e.format:e.name)}${(e.kind===o.CommandParameterKinds.string||e.kind===o.CommandParameterKinds.number)&&e.variadic?`...`:``}>")}`).join(` `)}`:``} \${textColors.usage.options("[options]")}\`), { padding: ${d.padding.app*c} }
4
- );`),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(t.Show,{get when(){return i.args.length>0},get children(){return[(0,e.createIntrinsic)(`hbr`,{}),(0,e.memo)(()=>t.code`
24
+ textColors.body.secondary(\`\${textColors.usage.bin("$_ ${(0, _shell_shock_core_plugin_utils.getAppBin)(context)}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${textColors.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${textColors.usage.dynamic("[command]")}` : ""}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${textColors.usage.args("<${(arg.type === "string" || arg.type === "number") && arg.choices && arg.choices.length > 0 ? arg.choices.map((choice) => (0, _stryke_string_format_snake_case.snakeCase)(String(choice))).join("|") : arg.type === "string" && arg.format ? (0, _stryke_string_format_snake_case.snakeCase)(arg.format) : (0, _stryke_string_format_snake_case.snakeCase)(arg.name)}${(arg.type === "string" || arg.type === "number") && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""} \${textColors.usage.options("[options]")}\`), { padding: ${theme.padding.app * indent} }
25
+ );`),
26
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
27
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
28
+ get when() {
29
+ return command.args.length > 0;
30
+ },
31
+ get children() {
32
+ return [
33
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
34
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
5
35
  writeLine(
6
- textColors.body.secondary(\`\${textColors.usage.bin("$_ ${(0,n.getAppBin)(l)}")}${i.segments.length>0?` ${i.segments.map(e=>`\${textColors.usage.${(0,n.isDynamicPathSegment)(e)?`dynamic`:`command`}("${(0,n.isDynamicPathSegment)(e)?`[${(0,u.snakeCase)((0,n.getDynamicPathSegmentName)(e))}]`:e}")}`).join(` `)}`:``}${Object.values(i.children).length>0?' ${textColors.usage.dynamic("[command]")}':``} \${textColors.usage.options("[options]")}${i.args.length>0?` ${i.args.map(e=>`\${textColors.usage.args("<${(0,u.snakeCase)((e.kind===o.CommandParameterKinds.string||e.kind===o.CommandParameterKinds.number)&&e.choices&&e.choices.length>0?e.choices.join(`|`):e.kind===o.CommandParameterKinds.string&&e.format?e.format:e.name)}${(e.kind===o.CommandParameterKinds.string||e.kind===o.CommandParameterKinds.number)&&e.variadic?`...`:``}>")}`).join(` `)}`:``}\`), { padding: ${d.padding.app*c} }
7
- );`),(0,e.createIntrinsic)(`hbr`,{})]}})]}function f(r){let{options:i}=r,s=(0,a.usePowerlines)();return[t.code`table([ `,(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(t.For,{get each(){return(0,n.sortOptions)(i)},hardline:!0,children:e=>{let r=[],i=[];return e.name.length===1?r.push(`-${e.name}`):i.push(`--${(0,l.kebabCase)(e.name)}`),e.alias.forEach(e=>{e.length===1?r.push(`-${e}`):i.push(`--${(0,l.kebabCase)(e)}`)}),t.code`[{ value: textColors.body.primary("${r.length>0?`${r.sort().join(`, `)}${i.length>0?`, `:``}`:``}${i.length>0?i.sort().join(`, `):``}${e.kind===o.CommandParameterKinds.string?` <${(0,u.snakeCase)(e.choices&&e.choices.length>0?e.choices.join(`|`):e.format?e.format:e.name)}${e.variadic?`...`:``}>`:e.kind===o.CommandParameterKinds.number?` <${(0,u.snakeCase)(e.choices&&e.choices.length>0?e.choices.join(`|`):e.name)}${e.variadic?`...`:``}>`:``}"), align: "right", border: "none", maxWidth: "1/3" }, { value: textColors.body.tertiary(\`${(0,n.formatShortDescription)(e.description,{length:200}).replace(/\.+$/,``).trim()}${e.env||e.default!==void 0?` (${e.env?`env: ${s.config.appSpecificEnvPrefix}_${e.env}${e.default===void 0?``:`, `}`:``}${e.default===void 0?``:`default: ${JSON.stringify(e.default).replace(/"/g,`\\"`)}`})`:``}.\`), align: "left", border: "none" }], `}}),(0,e.createIntrinsic)(`hbr`,{}),t.code` ]); `]}function p(r){let{commands:i}=r;return[t.code`table([ `,(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(t.For,{get each(){return Object.values(i)},hardline:!0,children:e=>t.code`[{ value: textColors.body.primary("${e.name}"), align: "right", border: "none" }, { value: textColors.body.tertiary(\`${(0,n.formatShortDescription)(e.description,{length:200}).replace(/\.+$/,``).trim()}.\`), align: "left", border: "none" }], `}),(0,e.createIntrinsic)(`hbr`,{}),t.code` ]); `]}function m(n){let{command:o,indent:c=1,filterGlobalOptions:l=!1}=n,u=(0,s.useTheme)(),m=(0,a.usePowerlines)(),h=(0,t.computed)(()=>l?Object.values(o.options).filter(e=>!m.globalOptions.some(t=>t.name===e.name||e.alias.includes(t.name)||t.alias?.includes(e.name)||t.alias?.some(t=>e.alias.includes(t)))):Object.values(o.options));return[(0,e.memo)(()=>t.code`writeLine(bold(textColors.heading.secondary("Usage:"))${c>1?`, { padding: ${u.padding.app*c} }`:``});`),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(d,{command:o,indent:c}),(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(t.Show,{get when(){return h.value.length>0},get children(){return[(0,e.memo)(()=>t.code`writeLine("");
8
- writeLine(bold(textColors.heading.secondary("Options:"))${c>1?`, { padding: ${u.padding.app*c} }`:``});`),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(f,{get options(){return h.value}}),(0,e.createComponent)(i.Spacing,{})]}}),(0,e.createComponent)(t.Show,{get when(){return Object.keys(o.children).length>0},get children(){return[(0,e.memo)(()=>t.code`writeLine("");
9
- writeLine(bold(textColors.heading.secondary("Commands:"))${c>1?`, { padding: ${u.padding.app*c} }`:``});`),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(p,{get commands(){return o.children}}),(0,e.createComponent)(i.Spacing,{})]}}),(0,e.createComponent)(t.Show,{get when(){return(0,r.isSetString)(o.reference)},get children(){return[(0,e.memo)(()=>t.code`writeLine("");
10
- writeLine(textColors.heading.tertiary(\`More information about this command can be found in the reference documentation at \${link("${o.reference}")}\`)${c>1?`, { padding: ${u.padding.app*c} }`:``});`),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(i.Spacing,{})]}})]}function h(e){return Object.values(e).sort((e,t)=>e.tags.some(e=>e.toLowerCase()===`deprecated`)&&!t.tags.some(e=>e.toLowerCase()===`deprecated`)?1:!e.tags.some(e=>e.toLowerCase()===`deprecated`)&&t.tags.some(e=>e.toLowerCase()===`deprecated`)?-1:e.tags.some(e=>e.toLowerCase()===`experimental`)&&!t.tags.some(e=>e.toLowerCase()===`experimental`)?1:!e.tags.some(e=>e.toLowerCase()===`experimental`)&&t.tags.some(e=>e.toLowerCase()===`experimental`)?-1:e.tags.some(e=>e.toLowerCase()===`utility`)&&!t.tags.some(e=>e.toLowerCase()===`utility`)?1:!e.tags.some(e=>e.toLowerCase()===`utility`)&&t.tags.some(e=>e.toLowerCase()===`utility`)?-1:e.name.localeCompare(t.name))}function g(r){let{options:o,segments:s,commands:l}=r,u=(0,a.usePowerlines)();return[(0,e.createIntrinsic)(`hbr`,{}),t.code`writeLine(bold(textColors.heading.secondary("Common Options:")));`,(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(f,{options:o}),t.code`writeLine(""); `,(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(t.Show,{get when(){return Object.keys(l).length>0},get children(){return[(0,e.memo)(()=>t.code`writeLine(textColors.body.tertiary("The following commands are available through the ${(0,n.getAppTitle)(u,!0)} command-line interface:"));
11
- writeLine(""); `),(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(t.For,{get each(){return h(l)},doubleHardline:!0,joiner:t.code`writeLine(""); `,ender:t.code`writeLine(""); `,children:r=>[(0,e.createIntrinsic)(`hbr`,{}),(0,e.memo)(()=>t.code`
12
- writeLine(textColors.heading.primary(${r.icon?`(isUnicodeSupported ? " ${r.icon} " : "") + `:``}\`${r.title} ${r.isVirtual?``:`Command`}${r.tags?.length>0?` - ${r.tags.map(e=>`\${textColors.tags.${(0,c.camelCase)(e)} ? textColors.tags.${(0,c.camelCase)(e)}(inverse(" ${e} ")) : textColors.tags.$default(inverse(" ${e} "))}`).join(` `)}`:``}\`));
36
+ textColors.body.secondary(\`\${textColors.usage.bin("$_ ${(0, _shell_shock_core_plugin_utils.getAppBin)(context)}")}${command.segments.length > 0 ? ` ${command.segments.map((segment) => `\${textColors.usage.${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? "dynamic" : "command"}("${(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment) ? `[${(0, _stryke_string_format_snake_case.snakeCase)((0, _shell_shock_core_plugin_utils.getDynamicPathSegmentName)(segment))}]` : segment}")}`).join(" ")}` : ""}${Object.values(command.children).length > 0 ? ` \${textColors.usage.dynamic("[command]")}` : ""} \${textColors.usage.options("[options]")}${command.args.length > 0 ? ` ${command.args.map((arg) => `\${textColors.usage.args("<${(arg.type === "string" || arg.type === "number") && arg.choices && arg.choices.length > 0 ? arg.choices.map((choice) => (0, _stryke_string_format_snake_case.snakeCase)(String(choice))).join("|") : arg.type === "string" && arg.format ? (0, _stryke_string_format_snake_case.snakeCase)(arg.format) : (0, _stryke_string_format_snake_case.snakeCase)(arg.name)}${(arg.type === "string" || arg.type === "number") && arg.variadic ? "..." : ""}>")}`).join(" ")}` : ""}\`), { padding: ${theme.padding.app * indent} }
37
+ );`),
38
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
39
+ ];
40
+ }
41
+ })
42
+ ];
43
+ }
44
+ /**
45
+ * A component that generates the options table display for a command.
46
+ */
47
+ function HelpOptionsDisplay(props) {
48
+ const { options } = props;
49
+ const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
50
+ return [
51
+ _alloy_js_core.code`table([ `,
52
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
53
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
54
+ get each() {
55
+ return (0, _shell_shock_core_plugin_utils.sortOptions)(options);
56
+ },
57
+ hardline: true,
58
+ children: (option) => {
59
+ const flags = [];
60
+ const names = [];
61
+ if (option.name.length === 1) flags.push(`-${option.name}`);
62
+ else names.push(`--${(0, _stryke_string_format_kebab_case.kebabCase)(option.name)}`);
63
+ option.alias.forEach((alias) => {
64
+ if (alias.length === 1) flags.push(`-${alias}`);
65
+ else names.push(`--${(0, _stryke_string_format_kebab_case.kebabCase)(alias)}`);
66
+ });
67
+ return _alloy_js_core.code`[{ value: textColors.body.primary("${flags.length > 0 ? `${flags.sort().join(", ")}${names.length > 0 ? ", " : ""}` : ""}${names.length > 0 ? names.sort().join(", ") : ""}${option.type === "string" ? ` <${option.choices && option.choices.length > 0 ? option.choices.map((choice) => (0, _stryke_string_format_snake_case.snakeCase)(String(choice))).join("|") : option.format ? (0, _stryke_string_format_snake_case.snakeCase)(option.format) : (0, _stryke_string_format_snake_case.snakeCase)(option.name)}${option.variadic ? "..." : ""}>` : option.type === "number" ? ` <${option.choices && option.choices.length > 0 ? option.choices.map((choice) => (0, _stryke_string_format_snake_case.snakeCase)(String(choice))).join("|") : (0, _stryke_string_format_snake_case.snakeCase)(option.name)}${option.variadic ? "..." : ""}>` : ""}"), align: "right", border: "none", maxWidth: "1/3" }, { value: textColors.body.tertiary(\`${(0, _shell_shock_core_plugin_utils.formatShortDescription)(option.description, { length: 200 }).replace(/\.+$/, "").trim()}${option.env || option.default !== void 0 ? ` (${option.env ? `env: ${context.config.appSpecificEnvPrefix}_${option.env}${option.default !== void 0 ? ", " : ""}` : ""}${option.default !== void 0 ? `default: ${JSON.stringify(option.default).replace(/"/g, "\\\"")}` : ""})` : ""}.\`), align: "left", border: "none" }], `;
68
+ }
69
+ }),
70
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
71
+ _alloy_js_core.code` ]); `
72
+ ];
73
+ }
74
+ /**
75
+ * A component that generates the commands table display for a command.
76
+ */
77
+ function HelpCommandsDisplay(props) {
78
+ const { commands } = props;
79
+ return [
80
+ _alloy_js_core.code`table([ `,
81
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
82
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
83
+ get each() {
84
+ return Object.values(commands);
85
+ },
86
+ hardline: true,
87
+ children: (child) => _alloy_js_core.code`[{ value: textColors.body.primary("${child.name}"), align: "right", border: "none" }, { value: textColors.body.tertiary(\`${(0, _shell_shock_core_plugin_utils.formatShortDescription)(child.description, { length: 200 }).replace(/\.+$/, "").trim()}.\`), align: "left", border: "none" }], `
88
+ }),
89
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
90
+ _alloy_js_core.code` ]); `
91
+ ];
92
+ }
93
+ /**
94
+ * A component that generates the `help` function declaration for a command.
95
+ */
96
+ function BaseHelpDisplay(props) {
97
+ const { command, indent = 1, filterGlobalOptions = false } = props;
98
+ const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
99
+ const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
100
+ const options = (0, _alloy_js_core.computed)(() => filterGlobalOptions ? Object.values(command.options).filter((option) => !context.globalOptions.some((globalOption) => globalOption.name === option.name || option.alias.includes(globalOption.name) || globalOption.alias?.includes(option.name) || globalOption.alias?.some((alias) => option.alias.includes(alias)))) : Object.values(command.options));
101
+ return [
102
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`writeLine(bold(textColors.heading.secondary("Usage:"))${indent > 1 ? `, { padding: ${theme.padding.app * indent} }` : ""});`),
103
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
104
+ (0, _alloy_js_core_jsx_runtime.createComponent)(HelpUsageDisplay, {
105
+ command,
106
+ indent
107
+ }),
108
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
109
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
110
+ get when() {
111
+ return options.value.length > 0;
112
+ },
113
+ get children() {
114
+ return [
115
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`writeLine("");
116
+ writeLine(bold(textColors.heading.secondary("Options:"))${indent > 1 ? `, { padding: ${theme.padding.app * indent} }` : ""});`),
117
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
118
+ (0, _alloy_js_core_jsx_runtime.createComponent)(HelpOptionsDisplay, { get options() {
119
+ return options.value;
120
+ } }),
121
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
122
+ ];
123
+ }
124
+ }),
125
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
126
+ get when() {
127
+ return Object.keys(command.children).length > 0;
128
+ },
129
+ get children() {
130
+ return [
131
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`writeLine("");
132
+ writeLine(bold(textColors.heading.secondary("Commands:"))${indent > 1 ? `, { padding: ${theme.padding.app * indent} }` : ""});`),
133
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
134
+ (0, _alloy_js_core_jsx_runtime.createComponent)(HelpCommandsDisplay, { get commands() {
135
+ return command.children;
136
+ } }),
137
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
138
+ ];
139
+ }
140
+ }),
141
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
142
+ get when() {
143
+ return (0, _stryke_type_checks_is_set_string.isSetString)(command.docs);
144
+ },
145
+ get children() {
146
+ return [
147
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`writeLine("");
148
+ writeLine(textColors.heading.tertiary(\`More information about this command can be found in the reference documentation at \${link("${command.docs}")}\`)${indent > 1 ? `, { padding: ${theme.padding.app * indent} }` : ""});`),
149
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
150
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
151
+ ];
152
+ }
153
+ })
154
+ ];
155
+ }
156
+ function sortCommands(commands) {
157
+ return Object.values(commands).sort((a, b) => {
158
+ if (a.tags.some((tag) => tag.toLowerCase() === "deprecated") && !b.tags.some((tag) => tag.toLowerCase() === "deprecated")) return 1;
159
+ else if (!a.tags.some((tag) => tag.toLowerCase() === "deprecated") && b.tags.some((tag) => tag.toLowerCase() === "deprecated")) return -1;
160
+ else if (a.tags.some((tag) => tag.toLowerCase() === "experimental") && !b.tags.some((tag) => tag.toLowerCase() === "experimental")) return 1;
161
+ else if (!a.tags.some((tag) => tag.toLowerCase() === "experimental") && b.tags.some((tag) => tag.toLowerCase() === "experimental")) return -1;
162
+ else if (a.tags.some((tag) => tag.toLowerCase() === "utility") && !b.tags.some((tag) => tag.toLowerCase() === "utility")) return 1;
163
+ else if (!a.tags.some((tag) => tag.toLowerCase() === "utility") && b.tags.some((tag) => tag.toLowerCase() === "utility")) return -1;
164
+ return a.name.localeCompare(b.name);
165
+ });
166
+ }
167
+ /**
168
+ * A component that generates the invocation of the `help` function for a command.
169
+ */
170
+ function VirtualCommandHelpDisplay(props) {
171
+ const { options, segments, commands } = props;
172
+ const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
173
+ return [
174
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
175
+ _alloy_js_core.code`writeLine(bold(textColors.heading.secondary("Common Options:")));`,
176
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
177
+ (0, _alloy_js_core_jsx_runtime.createComponent)(HelpOptionsDisplay, { options }),
178
+ _alloy_js_core.code`writeLine(""); `,
179
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
180
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
181
+ get when() {
182
+ return Object.keys(commands).length > 0;
183
+ },
184
+ get children() {
185
+ return [
186
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`writeLine(textColors.body.tertiary("The following commands are available through the ${(0, _shell_shock_core_plugin_utils.getAppTitle)(context, true)} command-line interface:"));
187
+ writeLine(""); `),
188
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
189
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
190
+ get each() {
191
+ return sortCommands(commands);
192
+ },
193
+ doubleHardline: true,
194
+ joiner: _alloy_js_core.code`writeLine(""); `,
195
+ ender: _alloy_js_core.code`writeLine(""); `,
196
+ children: (child) => [
197
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
198
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
199
+ writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title} ${child.virtual ? "" : "Command"}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)} ? textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
13
200
  writeLine("");
14
- writeLine(textColors.body.tertiary(splitText(\`${(0,n.formatDescription)(r.description).replace(/\.+$/,``).trim()}.\`)));
15
- writeLine(""); `),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(m,{command:r,indent:2,filterGlobalOptions:!0}),(0,e.createIntrinsic)(`hbr`,{})]}),(0,e.memo)(()=>t.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0,n.getAppBin)(u)} ${s&&s.length>0?` ${s.join(` `)}`:``} <specific command> --help")}) or the help command with the specific command as arguments (via: \${inlineCode("${(0,n.getAppBin)(u)} ${s&&s.length>0?` ${s.join(` `)}`:``} help <specific command>")}) will provide additional information that is specific to that command.\`);
16
- writeLine("");`)]}})]}function _(r){let{command:o}=r,s=(0,a.usePowerlines)();return[t.code`writeLine(""); `,(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(m,{command:o,filterGlobalOptions:!1}),t.code`writeLine(""); `,(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(t.Show,{get when(){return Object.keys(o.children).length>0},get children(){return[t.code`writeLine(textColors.body.tertiary("The following sub-commands are available:"));
17
- writeLine(""); `,(0,e.createComponent)(i.Spacing,{}),(0,e.createComponent)(t.For,{get each(){return h(o.children)},doubleHardline:!0,joiner:t.code`writeLine(""); `,ender:t.code`writeLine(""); `,children:r=>[(0,e.createIntrinsic)(`hbr`,{}),(0,e.memo)(()=>t.code`
18
- writeLine(textColors.heading.primary(${r.icon?`(isUnicodeSupported ? " ${r.icon} " : "") + `:``}\`${r.title} ${r.isVirtual?``:`Command`}${r.tags?.length>0?` - ${r.tags.map(e=>`\${textColors.tags.${(0,c.camelCase)(e)} ? textColors.tags.${(0,c.camelCase)(e)}(inverse(" ${e} ")) : textColors.tags.$default(inverse(" ${e} "))}`).join(` `)}`:``}\`));
201
+ writeLine(textColors.body.tertiary(splitText(\`${(0, _shell_shock_core_plugin_utils.formatDescription)(child.description).replace(/\.+$/, "").trim()}.\`)));
202
+ writeLine(""); `),
203
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
204
+ (0, _alloy_js_core_jsx_runtime.createComponent)(BaseHelpDisplay, {
205
+ command: child,
206
+ indent: 2,
207
+ filterGlobalOptions: true
208
+ }),
209
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
210
+ ]
211
+ }),
212
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0, _shell_shock_core_plugin_utils.getAppBin)(context)} ${segments && segments.length > 0 ? ` ${segments.join(" ")}` : ""} <specific command> --help")}) or the help command with the specific command as arguments (via: \${inlineCode("${(0, _shell_shock_core_plugin_utils.getAppBin)(context)} ${segments && segments.length > 0 ? ` ${segments.join(" ")}` : ""} help <specific command>")}) will provide additional information that is specific to that command.\`);
213
+ writeLine("");`)
214
+ ];
215
+ }
216
+ })
217
+ ];
218
+ }
219
+ /**
220
+ * A component that generates the invocation of the `help` function for a command.
221
+ */
222
+ function CommandHelpDisplay(props) {
223
+ const { command } = props;
224
+ const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
225
+ return [
226
+ _alloy_js_core.code`writeLine(""); `,
227
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
228
+ (0, _alloy_js_core_jsx_runtime.createComponent)(BaseHelpDisplay, {
229
+ command,
230
+ filterGlobalOptions: false
231
+ }),
232
+ _alloy_js_core.code`writeLine(""); `,
233
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
234
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
235
+ get when() {
236
+ return Object.keys(command.children).length > 0;
237
+ },
238
+ get children() {
239
+ return [
240
+ _alloy_js_core.code`writeLine(textColors.body.tertiary("The following sub-commands are available:"));
241
+ writeLine(""); `,
242
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
243
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
244
+ get each() {
245
+ return sortCommands(command.children);
246
+ },
247
+ doubleHardline: true,
248
+ joiner: _alloy_js_core.code`writeLine(""); `,
249
+ ender: _alloy_js_core.code`writeLine(""); `,
250
+ children: (child) => [
251
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
252
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
253
+ writeLine(textColors.heading.primary(${child.icon ? `(isUnicodeSupported ? " ${child.icon} " : "") + ` : ""}\`${child.title} ${child.virtual ? "" : "Command"}${child.tags?.length > 0 ? ` - ${child.tags.map((tag) => `\${textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)} ? textColors.tags.${(0, _stryke_string_format_camel_case.camelCase)(tag)}(inverse(" ${tag} ")) : textColors.tags.$default(inverse(" ${tag} "))}`).join(" ")}` : ""}\`));
19
254
  writeLine("");
20
- writeLine(textColors.body.tertiary(splitText(\`${(0,n.formatDescription)(r.description).replace(/\.+$/,``).trim()}.\`)));
21
- writeLine(""); `),(0,e.createIntrinsic)(`hbr`,{}),(0,e.createComponent)(m,{command:r,indent:2,filterGlobalOptions:!0}),(0,e.createIntrinsic)(`hbr`,{})]}),(0,e.memo)(()=>t.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0,n.getAppBin)(s)} ${o.segments.join(` `)} <specific command> --help")}) will provide additional information that is specific to that command.\`);
22
- writeLine("");`)]}})]}exports.BaseHelpDisplay=m,exports.CommandHelpDisplay=_,exports.HelpCommandsDisplay=p,exports.HelpOptionsDisplay=f,exports.HelpUsageDisplay=d,exports.VirtualCommandHelpDisplay=g;
255
+ writeLine(textColors.body.tertiary(splitText(\`${(0, _shell_shock_core_plugin_utils.formatDescription)(child.description).replace(/\.+$/, "").trim()}.\`)));
256
+ writeLine(""); `),
257
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
258
+ (0, _alloy_js_core_jsx_runtime.createComponent)(BaseHelpDisplay, {
259
+ command: child,
260
+ indent: 2,
261
+ filterGlobalOptions: true
262
+ }),
263
+ (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
264
+ ]
265
+ }),
266
+ (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`help(\`Running a specific command with the help flag (via: \${inlineCode("${(0, _shell_shock_core_plugin_utils.getAppBin)(context)} ${command.segments.join(" ")} <specific command> --help")}) will provide additional information that is specific to that command.\`);
267
+ writeLine("");`)
268
+ ];
269
+ }
270
+ })
271
+ ];
272
+ }
273
+
274
+ //#endregion
275
+ exports.BaseHelpDisplay = BaseHelpDisplay;
276
+ exports.CommandHelpDisplay = CommandHelpDisplay;
277
+ exports.HelpCommandsDisplay = HelpCommandsDisplay;
278
+ exports.HelpOptionsDisplay = HelpOptionsDisplay;
279
+ exports.HelpUsageDisplay = HelpUsageDisplay;
280
+ exports.VirtualCommandHelpDisplay = VirtualCommandHelpDisplay;
@@ -1,4 +1,3 @@
1
- import * as _$_alloy_js_core0 from "@alloy-js/core";
2
1
  import { CommandOption, CommandTree } from "@shell-shock/core";
3
2
 
4
3
  //#region src/components/display.d.ts
@@ -20,7 +19,7 @@ interface HelpUsageDisplayProps {
20
19
  /**
21
20
  * A component that generates the usage display for a command.
22
21
  */
23
- declare function HelpUsageDisplay(props: HelpUsageDisplayProps): _$_alloy_js_core0.Children;
22
+ declare function HelpUsageDisplay(props: HelpUsageDisplayProps): import("@alloy-js/core").Children;
24
23
  interface HelpOptionsDisplayProps {
25
24
  /**
26
25
  * The options to display help for.
@@ -30,7 +29,7 @@ interface HelpOptionsDisplayProps {
30
29
  /**
31
30
  * A component that generates the options table display for a command.
32
31
  */
33
- declare function HelpOptionsDisplay(props: HelpOptionsDisplayProps): _$_alloy_js_core0.Children;
32
+ declare function HelpOptionsDisplay(props: HelpOptionsDisplayProps): import("@alloy-js/core").Children;
34
33
  interface HelpCommandsDisplayProps {
35
34
  /**
36
35
  * A mapping of command names to their command definitions.
@@ -40,7 +39,7 @@ interface HelpCommandsDisplayProps {
40
39
  /**
41
40
  * A component that generates the commands table display for a command.
42
41
  */
43
- declare function HelpCommandsDisplay(props: HelpCommandsDisplayProps): _$_alloy_js_core0.Children;
42
+ declare function HelpCommandsDisplay(props: HelpCommandsDisplayProps): import("@alloy-js/core").Children;
44
43
  interface BaseHelpDisplayProps {
45
44
  /**
46
45
  * The command to generate help for.
@@ -68,7 +67,7 @@ interface BaseHelpDisplayProps {
68
67
  /**
69
68
  * A component that generates the `help` function declaration for a command.
70
69
  */
71
- declare function BaseHelpDisplay(props: BaseHelpDisplayProps): _$_alloy_js_core0.Children;
70
+ declare function BaseHelpDisplay(props: BaseHelpDisplayProps): import("@alloy-js/core").Children;
72
71
  interface VirtualCommandHelpDisplayProps {
73
72
  /**
74
73
  * The options to display help for.
@@ -89,7 +88,7 @@ interface VirtualCommandHelpDisplayProps {
89
88
  /**
90
89
  * A component that generates the invocation of the `help` function for a command.
91
90
  */
92
- declare function VirtualCommandHelpDisplay(props: VirtualCommandHelpDisplayProps): _$_alloy_js_core0.Children;
91
+ declare function VirtualCommandHelpDisplay(props: VirtualCommandHelpDisplayProps): import("@alloy-js/core").Children;
93
92
  interface CommandHelpDisplayProps {
94
93
  /**
95
94
  * A mapping of command names to their command definitions.
@@ -99,7 +98,7 @@ interface CommandHelpDisplayProps {
99
98
  /**
100
99
  * A component that generates the invocation of the `help` function for a command.
101
100
  */
102
- declare function CommandHelpDisplay(props: CommandHelpDisplayProps): _$_alloy_js_core0.Children;
101
+ declare function CommandHelpDisplay(props: CommandHelpDisplayProps): import("@alloy-js/core").Children;
103
102
  //#endregion
104
103
  export { BaseHelpDisplay, BaseHelpDisplayProps, CommandHelpDisplay, CommandHelpDisplayProps, HelpCommandsDisplay, HelpCommandsDisplayProps, HelpOptionsDisplay, HelpOptionsDisplayProps, HelpUsageDisplay, HelpUsageDisplayProps, VirtualCommandHelpDisplay, VirtualCommandHelpDisplayProps };
105
104
  //# sourceMappingURL=display.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.cts","names":[],"sources":["../../src/components/display.tsx"],"mappings":";;;;UAuCiB,qBAAA;;;AAAjB;EAIE,OAAA,EAAS,WAAA;;;;;;;;AAgBX;EANE,MAAA;AAAA;;;;iBAMc,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,iBAAA,CAAA,QAAA;AAAA,UAqH5C,uBAAA;EArH4C;AAqH7D;;EAIE,OAAA,EAAS,aAAA;AAAA;;AAMX;;iBAAgB,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA;AAAA,UAgFhD,wBAAA;EAhFyB;;;EAoFxC,QAAA,EAAU,MAAA,SAAe,WAAA;AAAA;AAJ3B;;;AAAA,iBAUgB,mBAAA,CAAoB,KAAA,EAAO,wBAAA,GAAwB,iBAAA,CAAA,QAAA;AAAA,UA2BlD,oBAAA;EAjCL;;;EAqCV,OAAA,EAAS,WAAA;EA/BK;;;;;;;;EAyCd,mBAAA;EAde;;;;;;;;EAwBf,MAAA;AAAA;AAMF;;;AAAA,iBAAgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA;AAAA,UA6D1C,8BAAA;EA7De;;;EAiE9B,OAAA,EAAS,aAAA;EAJM;;;EASf,QAAA,EAAU,MAAA,SAAe,WAAA;EAAA;;;;;;EAQzB,QAAA;AAAA;;;;iBA4Cc,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,iBAAA,CAAA,QAAA;AAAA,UAwEtB,uBAAA;EAzEwB;;;EA6EvC,OAAA,EAAS,WAAA;AAAA;;;;iBAMK,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA"}
1
+ {"version":3,"file":"display.d.cts","names":[],"sources":["../../src/components/display.tsx"],"mappings":";;;UAsCiB,qBAAA;;AAAjB;;EAIE,OAAA,EAAS,WAAW;EAAA;;;;;AAUd;AAMR;;EANE,MAAA;AAAA;;;;iBAMc,gBAAA,CAAiB,KAAA,EAAO,qBAAqB,4BAAA,QAAA;AAAA,UAmH5C,uBAAA;EAAA;;;EAIf,OAAA,EAAS,aAAa;AAAA;AAMxB;;;AAAA,iBAAgB,kBAAA,CAAmB,KAAA,EAAO,uBAAuB,4BAAA,QAAA;AAAA,UAoFhD,wBAAA;EApFkB;;;EAwFjC,QAAA,EAAU,MAAM,SAAS,WAAA;AAAA;;;;iBAMX,mBAAA,CAAoB,KAAA,EAAO,wBAAwB,4BAAA,QAAA;AAAA,UA2BlD,oBAAA;EAjCU;;AAAW;EAqCpC,OAAA,EAAS,WAAW;EA/Ba;;;;;;;AAAgC;EAyCjE,mBAAA;EAdmC;;;;;;;;EAwBnC,MAAA;AAAA;;;;iBAMc,eAAA,CAAgB,KAAA,EAAO,oBAAoB,4BAAA,QAAA;AAAA,UA6D1C,8BAAA;EA7D0C;;AAAA;EAiEzD,OAAA,EAAS,aAAA;EAJoC;;;EAS7C,QAAA,EAAU,MAAA,SAAe,WAAA;EAAf;;;;;;EAQV,QAAA;AAAA;;;AAAQ;iBA4CM,yBAAA,CACd,KAAA,EAAO,8BAA8B,4BAAA,QAAA;AAAA,UAwEtB,uBAAA;;;;EAIf,OAAA,EAAS,WAAW;AAAA;;AA5EiB;AAwEvC;iBAUgB,kBAAA,CAAmB,KAAA,EAAO,uBAAuB,4BAAA,QAAA"}
@@ -1,4 +1,3 @@
1
- import * as _$_alloy_js_core0 from "@alloy-js/core";
2
1
  import { CommandOption, CommandTree } from "@shell-shock/core";
3
2
 
4
3
  //#region src/components/display.d.ts
@@ -20,7 +19,7 @@ interface HelpUsageDisplayProps {
20
19
  /**
21
20
  * A component that generates the usage display for a command.
22
21
  */
23
- declare function HelpUsageDisplay(props: HelpUsageDisplayProps): _$_alloy_js_core0.Children;
22
+ declare function HelpUsageDisplay(props: HelpUsageDisplayProps): import("@alloy-js/core").Children;
24
23
  interface HelpOptionsDisplayProps {
25
24
  /**
26
25
  * The options to display help for.
@@ -30,7 +29,7 @@ interface HelpOptionsDisplayProps {
30
29
  /**
31
30
  * A component that generates the options table display for a command.
32
31
  */
33
- declare function HelpOptionsDisplay(props: HelpOptionsDisplayProps): _$_alloy_js_core0.Children;
32
+ declare function HelpOptionsDisplay(props: HelpOptionsDisplayProps): import("@alloy-js/core").Children;
34
33
  interface HelpCommandsDisplayProps {
35
34
  /**
36
35
  * A mapping of command names to their command definitions.
@@ -40,7 +39,7 @@ interface HelpCommandsDisplayProps {
40
39
  /**
41
40
  * A component that generates the commands table display for a command.
42
41
  */
43
- declare function HelpCommandsDisplay(props: HelpCommandsDisplayProps): _$_alloy_js_core0.Children;
42
+ declare function HelpCommandsDisplay(props: HelpCommandsDisplayProps): import("@alloy-js/core").Children;
44
43
  interface BaseHelpDisplayProps {
45
44
  /**
46
45
  * The command to generate help for.
@@ -68,7 +67,7 @@ interface BaseHelpDisplayProps {
68
67
  /**
69
68
  * A component that generates the `help` function declaration for a command.
70
69
  */
71
- declare function BaseHelpDisplay(props: BaseHelpDisplayProps): _$_alloy_js_core0.Children;
70
+ declare function BaseHelpDisplay(props: BaseHelpDisplayProps): import("@alloy-js/core").Children;
72
71
  interface VirtualCommandHelpDisplayProps {
73
72
  /**
74
73
  * The options to display help for.
@@ -89,7 +88,7 @@ interface VirtualCommandHelpDisplayProps {
89
88
  /**
90
89
  * A component that generates the invocation of the `help` function for a command.
91
90
  */
92
- declare function VirtualCommandHelpDisplay(props: VirtualCommandHelpDisplayProps): _$_alloy_js_core0.Children;
91
+ declare function VirtualCommandHelpDisplay(props: VirtualCommandHelpDisplayProps): import("@alloy-js/core").Children;
93
92
  interface CommandHelpDisplayProps {
94
93
  /**
95
94
  * A mapping of command names to their command definitions.
@@ -99,7 +98,7 @@ interface CommandHelpDisplayProps {
99
98
  /**
100
99
  * A component that generates the invocation of the `help` function for a command.
101
100
  */
102
- declare function CommandHelpDisplay(props: CommandHelpDisplayProps): _$_alloy_js_core0.Children;
101
+ declare function CommandHelpDisplay(props: CommandHelpDisplayProps): import("@alloy-js/core").Children;
103
102
  //#endregion
104
103
  export { BaseHelpDisplay, BaseHelpDisplayProps, CommandHelpDisplay, CommandHelpDisplayProps, HelpCommandsDisplay, HelpCommandsDisplayProps, HelpOptionsDisplay, HelpOptionsDisplayProps, HelpUsageDisplay, HelpUsageDisplayProps, VirtualCommandHelpDisplay, VirtualCommandHelpDisplayProps };
105
104
  //# sourceMappingURL=display.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.mts","names":[],"sources":["../../src/components/display.tsx"],"mappings":";;;;UAuCiB,qBAAA;;;AAAjB;EAIE,OAAA,EAAS,WAAA;;;;;;;;AAgBX;EANE,MAAA;AAAA;;;;iBAMc,gBAAA,CAAiB,KAAA,EAAO,qBAAA,GAAqB,iBAAA,CAAA,QAAA;AAAA,UAqH5C,uBAAA;EArH4C;AAqH7D;;EAIE,OAAA,EAAS,aAAA;AAAA;;AAMX;;iBAAgB,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA;AAAA,UAgFhD,wBAAA;EAhFyB;;;EAoFxC,QAAA,EAAU,MAAA,SAAe,WAAA;AAAA;AAJ3B;;;AAAA,iBAUgB,mBAAA,CAAoB,KAAA,EAAO,wBAAA,GAAwB,iBAAA,CAAA,QAAA;AAAA,UA2BlD,oBAAA;EAjCL;;;EAqCV,OAAA,EAAS,WAAA;EA/BK;;;;;;;;EAyCd,mBAAA;EAde;;;;;;;;EAwBf,MAAA;AAAA;AAMF;;;AAAA,iBAAgB,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAoB,iBAAA,CAAA,QAAA;AAAA,UA6D1C,8BAAA;EA7De;;;EAiE9B,OAAA,EAAS,aAAA;EAJM;;;EASf,QAAA,EAAU,MAAA,SAAe,WAAA;EAAA;;;;;;EAQzB,QAAA;AAAA;;;;iBA4Cc,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,iBAAA,CAAA,QAAA;AAAA,UAwEtB,uBAAA;EAzEwB;;;EA6EvC,OAAA,EAAS,WAAA;AAAA;;;;iBAMK,kBAAA,CAAmB,KAAA,EAAO,uBAAA,GAAuB,iBAAA,CAAA,QAAA"}
1
+ {"version":3,"file":"display.d.mts","names":[],"sources":["../../src/components/display.tsx"],"mappings":""}