@shell-shock/core 0.11.0 → 0.12.1

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 (86) hide show
  1. package/dist/components/docs.d.mts +5 -5
  2. package/dist/components/helpers.cjs +9 -0
  3. package/dist/components/helpers.cjs.map +1 -1
  4. package/dist/components/helpers.d.cts +15 -7
  5. package/dist/components/helpers.d.cts.map +1 -1
  6. package/dist/components/helpers.d.mts +15 -7
  7. package/dist/components/helpers.d.mts.map +1 -1
  8. package/dist/components/helpers.mjs +9 -1
  9. package/dist/components/helpers.mjs.map +1 -1
  10. package/dist/components/index.cjs +1 -0
  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/options-parser-logic.cjs +142 -62
  15. package/dist/components/options-parser-logic.cjs.map +1 -1
  16. package/dist/components/options-parser-logic.d.cts +17 -17
  17. package/dist/components/options-parser-logic.d.cts.map +1 -1
  18. package/dist/components/options-parser-logic.d.mts +17 -17
  19. package/dist/components/options-parser-logic.d.mts.map +1 -1
  20. package/dist/components/options-parser-logic.mjs +143 -63
  21. package/dist/components/options-parser-logic.mjs.map +1 -1
  22. package/dist/components/usage.d.cts +2 -2
  23. package/dist/components/usage.d.mts +2 -2
  24. package/dist/components/usage.d.mts.map +1 -1
  25. package/dist/components/utils-builtin.cjs +5 -9
  26. package/dist/components/utils-builtin.cjs.map +1 -1
  27. package/dist/components/utils-builtin.d.cts.map +1 -1
  28. package/dist/components/utils-builtin.d.mts.map +1 -1
  29. package/dist/components/utils-builtin.mjs +5 -9
  30. package/dist/components/utils-builtin.mjs.map +1 -1
  31. package/dist/helpers/automd.cjs +1 -1
  32. package/dist/helpers/automd.cjs.map +1 -1
  33. package/dist/helpers/automd.mjs +1 -1
  34. package/dist/helpers/automd.mjs.map +1 -1
  35. package/dist/plugin-utils/description-helpers.cjs +105 -0
  36. package/dist/plugin-utils/description-helpers.cjs.map +1 -0
  37. package/dist/plugin-utils/description-helpers.d.cts +44 -0
  38. package/dist/plugin-utils/description-helpers.d.cts.map +1 -0
  39. package/dist/plugin-utils/description-helpers.d.mts +44 -0
  40. package/dist/plugin-utils/description-helpers.d.mts.map +1 -0
  41. package/dist/plugin-utils/description-helpers.mjs +101 -0
  42. package/dist/plugin-utils/description-helpers.mjs.map +1 -0
  43. package/dist/plugin-utils/get-command-tree.cjs +26 -0
  44. package/dist/plugin-utils/get-command-tree.cjs.map +1 -1
  45. package/dist/plugin-utils/get-command-tree.d.cts +8 -1
  46. package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
  47. package/dist/plugin-utils/get-command-tree.d.mts +8 -1
  48. package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
  49. package/dist/plugin-utils/get-command-tree.mjs +26 -1
  50. package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
  51. package/dist/plugin-utils/index.cjs +7 -1
  52. package/dist/plugin-utils/index.d.cts +3 -2
  53. package/dist/plugin-utils/index.d.mts +3 -2
  54. package/dist/plugin-utils/index.mjs +3 -2
  55. package/dist/plugin-utils/type-checks.d.cts.map +1 -1
  56. package/dist/plugin.cjs +5 -7
  57. package/dist/plugin.cjs.map +1 -1
  58. package/dist/plugin.d.cts.map +1 -1
  59. package/dist/plugin.d.mts.map +1 -1
  60. package/dist/plugin.mjs +5 -7
  61. package/dist/plugin.mjs.map +1 -1
  62. package/dist/resolver/deepkit.cjs +6 -3
  63. package/dist/resolver/deepkit.cjs.map +1 -1
  64. package/dist/resolver/deepkit.mjs +6 -3
  65. package/dist/resolver/deepkit.mjs.map +1 -1
  66. package/dist/resolver/helpers.cjs +16 -22
  67. package/dist/resolver/helpers.cjs.map +1 -1
  68. package/dist/resolver/helpers.mjs +16 -22
  69. package/dist/resolver/helpers.mjs.map +1 -1
  70. package/dist/resolver/module.cjs +2 -2
  71. package/dist/resolver/module.cjs.map +1 -1
  72. package/dist/resolver/module.mjs +2 -2
  73. package/dist/resolver/module.mjs.map +1 -1
  74. package/dist/resolver/resolve.cjs +13 -13
  75. package/dist/resolver/resolve.cjs.map +1 -1
  76. package/dist/resolver/resolve.mjs +13 -13
  77. package/dist/resolver/resolve.mjs.map +1 -1
  78. package/dist/types/config.cjs +5 -3
  79. package/dist/types/config.cjs.map +1 -1
  80. package/dist/types/config.d.cts +7 -3
  81. package/dist/types/config.d.cts.map +1 -1
  82. package/dist/types/config.d.mts +7 -3
  83. package/dist/types/config.d.mts.map +1 -1
  84. package/dist/types/config.mjs +5 -3
  85. package/dist/types/config.mjs.map +1 -1
  86. package/package.json +11 -11
@@ -28,7 +28,7 @@ const commands = (context) => (0, automd.defineGenerator)({
28
28
  children: "Commands"
29
29
  }),
30
30
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
31
- (0, __alloy_js_core_jsx_runtime.memo)(() => __alloy_js_core.code`The following commands are available in the ${require_context_helpers.getAppTitle(context)} CLI application:`),
31
+ (0, __alloy_js_core_jsx_runtime.memo)(() => __alloy_js_core.code`The following commands are available in the ${require_context_helpers.getAppTitle(context, true)} command-line interface application:`),
32
32
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
33
33
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core_components.For, {
34
34
  get each() {
@@ -1 +1 @@
1
- {"version":3,"file":"automd.cjs","names":["code","For","Show","Heading","Spacing","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.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 } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context\n )} CLI application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,wCACP;CACdC,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,6DACEH,SAAO;oDAEJP,6BAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;oDAChBZ,2DAAO,EAAA,CAAA;+CACPJ,oBAAI,+CAA+CQ,oCAClDE,QACD,CAAA,mBAAmB;oDACnBN,2DAAO,EAAA,CAAA;oDACPH,gCAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,2DACEpB,iCAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,8DACzBT,qCAAW;OAACkB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;oDAEFtB,2DAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
1
+ {"version":3,"file":"automd.cjs","names":["code","For","Show","Heading","Spacing","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.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 } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context,\n true\n )} command-line interface application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,wCACP;CACdC,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,6DACEH,SAAO;oDAEJP,6BAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;oDAChBZ,2DAAO,EAAA,CAAA;+CACPJ,oBAAI,+CAA+CQ,oCAClDE,SACA,KACD,CAAA,sCAAsC;oDACtCN,2DAAO,EAAA,CAAA;oDACPH,gCAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,2DACEpB,iCAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,8DACzBT,qCAAW;OAACkB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;oDAEFtB,2DAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
@@ -27,7 +27,7 @@ const commands = (context) => defineGenerator({
27
27
  children: "Commands"
28
28
  }),
29
29
  createComponent(Spacing, {}),
30
- memo(() => code`The following commands are available in the ${getAppTitle(context)} CLI application:`),
30
+ memo(() => code`The following commands are available in the ${getAppTitle(context, true)} command-line interface application:`),
31
31
  createComponent(Spacing, {}),
32
32
  createComponent(For, {
33
33
  get each() {
@@ -1 +1 @@
1
- {"version":3,"file":"automd.mjs","names":["code","For","Show","Heading","Spacing","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.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 } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context\n )} CLI application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,YACvBJ,gBAAgB;CACdK,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,UAAUR,aACRK,SAAO;GAAAI,gBAEJX,SAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;GAAAF,gBAChBV,SAAO,EAAA,CAAA;GAAAa,WACPjB,IAAI,+CAA+CQ,YAClDE,QACD,CAAA,mBAAmB;GAAAI,gBACnBV,SAAO,EAAA,CAAA;GAAAU,gBACPb,KAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,UAAKR,gBACHZ,MAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,aAAAF,gBACzBP,aAAW;OAACkB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;GAAAZ,gBAEFV,SAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
1
+ {"version":3,"file":"automd.mjs","names":["code","For","Show","Heading","Spacing","renderString","defineGenerator","CommandDocs","getAppTitle","commands","context","name","generate","contents","_$createComponent","level","children","_$memo","each","Object","values","doubleHardline","child","when","isVirtual","command","levelOffset"],"sources":["../../src/helpers/automd.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 } from \"@alloy-js/core\";\nimport { For, Show } from \"@alloy-js/core/components\";\nimport { Heading } from \"@alloy-js/markdown\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { renderString } from \"@powerlines/plugin-alloy/render\";\nimport { defineGenerator } from \"automd\";\nimport { CommandDocs } from \"../components/docs\";\nimport { getAppTitle } from \"../plugin-utils\";\nimport type { Context } from \"../types/context\";\n\n/**\n * AutoMD generator to generate CLI command documentation\n *\n * @see https://automd.unjs.io/\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const commands = (context: Context) =>\n defineGenerator({\n name: \"commands\",\n async generate() {\n return {\n contents: renderString(\n context,\n <>\n <Heading level={2}>Commands</Heading>\n <Spacing />\n {code`The following commands are available in the ${getAppTitle(\n context,\n true\n )} command-line interface application:`}\n <Spacing />\n <For each={Object.values(context.commands)} doubleHardline>\n {child => (\n <Show when={!child.isVirtual}>\n <CommandDocs command={child} levelOffset={2} />\n </Show>\n )}\n </For>\n <Spacing />\n </>\n )\n };\n }\n });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoCA,MAAaS,YAAYC,YACvBJ,gBAAgB;CACdK,MAAM;CACN,MAAMC,WAAW;AACf,SAAO,EACLC,UAAUR,aACRK,SAAO;GAAAI,gBAEJX,SAAO;IAACY,OAAO;IAACC,UAAA;IAAA,CAAA;GAAAF,gBAChBV,SAAO,EAAA,CAAA;GAAAa,WACPjB,IAAI,+CAA+CQ,YAClDE,SACA,KACD,CAAA,sCAAsC;GAAAI,gBACtCV,SAAO,EAAA,CAAA;GAAAU,gBACPb,KAAG;IAAA,IAACiB,OAAI;AAAA,YAAEC,OAAOC,OAAOV,QAAQD,SAAS;;IAAEY,gBAAc;IAAAL,WACvDM,UAAKR,gBACHZ,MAAI;KAAA,IAACqB,OAAI;AAAA,aAAE,CAACD,MAAME;;KAAS,IAAAR,WAAA;AAAA,aAAAF,gBACzBP,aAAW;OAACkB,SAASH;OAAOI,aAAa;OAAC,CAAA;;KAAA,CAAA;IAE9C,CAAA;GAAAZ,gBAEFV,SAAO,EAAA,CAAA;GAEZ,CAAA,EACD;;CAEJ,CAAC"}
@@ -0,0 +1,105 @@
1
+
2
+ //#region src/plugin-utils/description-helpers.ts
3
+ const __ΩFormatDescriptionOptions = [
4
+ "replaceNewlines",
5
+ true,
6
+ "collapseWhitespace",
7
+ "FormatDescriptionOptions",
8
+ "P)4!8>\")4#8>\"Mw$y"
9
+ ];
10
+ /**
11
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
12
+ *
13
+ * @remarks
14
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
15
+ *
16
+ * @param description - The full description string.
17
+ * @returns The formatted description string.
18
+ */
19
+ function formatDescriptionWhitespace(description, options = {}) {
20
+ let formattedDescription = description.trim();
21
+ if (options.replaceNewlines) formattedDescription = formattedDescription.replace(/\s*\n\s*/g, " ");
22
+ if (options.collapseWhitespace) formattedDescription = formattedDescription.replace(/\s{2,}/g, " ");
23
+ return formattedDescription.trim();
24
+ }
25
+ formatDescriptionWhitespace.__type = [
26
+ "description",
27
+ () => __ΩFormatDescriptionOptions,
28
+ "options",
29
+ () => ({}),
30
+ "formatDescriptionWhitespace",
31
+ "P&2!n\"2#>$&/%"
32
+ ];
33
+ /**
34
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
35
+ *
36
+ * @remarks
37
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
38
+ *
39
+ * @param description - The full description string.
40
+ * @returns The formatted description string.
41
+ */
42
+ function formatDescriptionEscapes(description) {
43
+ return description.replaceAll("'", "\\'").replaceAll("\"", "\\\"").replaceAll("`", "\\`").replace(/\$\{/g, "\\${");
44
+ }
45
+ formatDescriptionEscapes.__type = [
46
+ "description",
47
+ "formatDescriptionEscapes",
48
+ "P&2!&/\""
49
+ ];
50
+ /**
51
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
52
+ *
53
+ * @remarks
54
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
55
+ *
56
+ * @param description - The full description string.
57
+ * @returns The formatted description string.
58
+ */
59
+ function formatDescription(description, options = {}) {
60
+ return formatDescriptionEscapes(formatDescriptionWhitespace(description, options));
61
+ }
62
+ formatDescription.__type = [
63
+ "description",
64
+ () => __ΩFormatDescriptionOptions,
65
+ "options",
66
+ () => ({}),
67
+ "formatDescription",
68
+ "P&2!n\"2#>$&/%"
69
+ ];
70
+ const __ΩFormatShortDescriptionOptions = [
71
+ () => __ΩFormatDescriptionOptions,
72
+ "length",
73
+ 60,
74
+ "FormatShortDescriptionOptions",
75
+ "Pn!'4\"8>#Mw$y"
76
+ ];
77
+ /**
78
+ * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.
79
+ *
80
+ * @param description - The full description string.
81
+ * @param options - Options for formatting the short description, including the maximum length.
82
+ * @returns The extracted short description.
83
+ */
84
+ function formatShortDescription(description, options = {}) {
85
+ const length = options.length ?? 60;
86
+ const formattedDescription = formatDescriptionWhitespace(description, options);
87
+ let result = ((formattedDescription.indexOf("\n") < length + 1 || formattedDescription.search(/[.!?\n]\s*\S/) > length + 1 ? formattedDescription.trim().match(/^.*[.!?\n]\s?\S/)?.[0]?.trim()?.slice(0, -1)?.trim() : void 0) || formattedDescription).trim();
88
+ if (result.trim().length > length) result = `${result.substring(0, Math.max(0, length - 3)).trim()}...`;
89
+ return formatDescriptionEscapes(result);
90
+ }
91
+ formatShortDescription.__type = [
92
+ "description",
93
+ () => __ΩFormatShortDescriptionOptions,
94
+ "options",
95
+ () => ({}),
96
+ "formatShortDescription",
97
+ "P&2!n\"2#>$&/%"
98
+ ];
99
+
100
+ //#endregion
101
+ exports.__ΩFormatDescriptionOptions = __ΩFormatDescriptionOptions;
102
+ exports.__ΩFormatShortDescriptionOptions = __ΩFormatShortDescriptionOptions;
103
+ exports.formatDescription = formatDescription;
104
+ exports.formatShortDescription = formatShortDescription;
105
+ //# sourceMappingURL=description-helpers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-helpers.cjs","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"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\nexport interface FormatDescriptionOptions {\n /**\n * If true, replaces newlines in the description with spaces. This is useful for ensuring that descriptions are displayed as a single line in contexts where multiline descriptions may not be supported or may cause formatting issues.\n *\n * @defaultValue false\n */\n replaceNewlines?: boolean;\n\n /**\n * If true, collapses multiple consecutive spaces in the description into a single space. This helps to ensure that descriptions are concise and do not contain unnecessary whitespace.\n *\n * @defaultValue false\n */\n collapseWhitespace?: boolean;\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nfunction formatDescriptionWhitespace(\n description: string,\n options: FormatDescriptionOptions = {}\n): string {\n let formattedDescription = description.trim();\n if (options.replaceNewlines) {\n formattedDescription = formattedDescription.replace(/\\s*\\n\\s*/g, \" \");\n }\n if (options.collapseWhitespace) {\n formattedDescription = formattedDescription.replace(/\\s{2,}/g, \" \");\n }\n\n return formattedDescription.trim();\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nfunction formatDescriptionEscapes(description: string): string {\n return description\n .replaceAll(\"'\", \"\\\\'\")\n .replaceAll('\"', '\\\\\"')\n .replaceAll(\"`\", \"\\\\`\")\n .replace(/\\$\\{/g, \"\\\\${\");\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nexport function formatDescription(\n description: string,\n options: FormatDescriptionOptions = {}\n): string {\n return formatDescriptionEscapes(\n formatDescriptionWhitespace(description, options)\n );\n}\n\nexport interface FormatShortDescriptionOptions extends FormatDescriptionOptions {\n /**\n * The maximum length of the short description. If the first sentence exceeds this length, it will be truncated.\n *\n * @defaultValue 60\n */\n length?: number;\n}\n\n/**\n * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.\n *\n * @param description - The full description string.\n * @param options - Options for formatting the short description, including the maximum length.\n * @returns The extracted short description.\n */\nexport function formatShortDescription(\n description: string,\n options: FormatShortDescriptionOptions = {}\n): string {\n const length = options.length ?? 60;\n const formattedDescription = formatDescriptionWhitespace(\n description,\n options\n );\n\n const firstSentenceMatch =\n formattedDescription.indexOf(\"\\n\") < length + 1 ||\n formattedDescription.search(/[.!?\\n]\\s*\\S/) > length + 1\n ? formattedDescription\n .trim()\n .match(/^.*[.!?\\n]\\s?\\S/)?.[0]\n ?.trim()\n ?.slice(0, -1)\n ?.trim()\n : undefined;\n\n let result = (firstSentenceMatch || formattedDescription).trim();\n if (result.trim().length > length) {\n result = `${result.substring(0, Math.max(0, length - 3)).trim()}...`;\n }\n\n return formatDescriptionEscapes(result);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4BA,SAAG,4BAAA,aAAA,UAAA,EAAA,EAAA;CACC,IAAI,uBAAe,YAAA,MAAA;AACnB,KAAA,QAAA,gBACI,wBAAsB,qBAAA,QAAA,aAAA,IAAA;gCAG5B,wBAAA,qBAAA,QAAA,WAAA,IAAA;AAED,QAAA,qBAAA,MAAA;;AAED,4BAA4B,SAAS;CAAC;OAAqB;CAA6B;QAAkB,EAAE;CAAG;CAAW;CAAA;;;;;;;;;;AAU1H,SAAS,yBAAsB,aAAA;AAC3B,QAAO,YACT,WAAA,KAAA,MAAA,CACO,WAAW,MAAK,OAAM,CACtB,WAAW,KAAK,MAAM,CAC7B,QAAA,SAAA,OAAA;;AAEF,yBAAyB,SAAS;CAAC;CAAC;CAAA;CAAA;;;;;;;;;;AAUpC,SAAgB,kBAAkB,aAAU,UAAA,EAAA,EAAA;AAC1C,QAAA,yBAAA,4BAAA,aAAA,QAAA,CAAA;;AAEF,kBAAkB,SAAC;CAAA;OAAA;CAAA;QAAA,EAAA;CAAA;CAAA;CAAA;AACnB,MAAM,mCAAoB;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;;AAS1B,SAAU,uBAAA,aAAA,UAAA,EAAA,EAAA;CACN,MAAM,SAAS,QAAQ,UAAU;CACpC,MAAA,uBAAA,4BAAA,aAAA,QAAA;CAUE,IAAA,WAT4B,qBAAoB,QAAA,KAAA,GAAA,SAAA,KAC3C,qBAAqB,OAAO,eAAQ,GAAA,SAAA,IAC1C,qBACW,MAAM,CACN,MAAM,kBAAE,GAAA,IACP,MAAM,EACV,MAAA,GAAA,GAAA,EACI,MAAM,GACV,WACP,sBAAA,MAAA;AACH,KAAA,OAAA,MAAA,CAAA,SAAA;AAGI,QAAA,yBAAA,OAAA;;AAEJ,uBAAG,SAAA;CAAA;OAAA;CAAA;QAAA,EAAA;CAAA;CAAA;CAAA"}
@@ -0,0 +1,44 @@
1
+ //#region src/plugin-utils/description-helpers.d.ts
2
+ interface FormatDescriptionOptions {
3
+ /**
4
+ * If true, replaces newlines in the description with spaces. This is useful for ensuring that descriptions are displayed as a single line in contexts where multiline descriptions may not be supported or may cause formatting issues.
5
+ *
6
+ * @defaultValue false
7
+ */
8
+ replaceNewlines?: boolean;
9
+ /**
10
+ * If true, collapses multiple consecutive spaces in the description into a single space. This helps to ensure that descriptions are concise and do not contain unnecessary whitespace.
11
+ *
12
+ * @defaultValue false
13
+ */
14
+ collapseWhitespace?: boolean;
15
+ }
16
+ /**
17
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
18
+ *
19
+ * @remarks
20
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
21
+ *
22
+ * @param description - The full description string.
23
+ * @returns The formatted description string.
24
+ */
25
+ declare function formatDescription(description: string, options?: FormatDescriptionOptions): string;
26
+ interface FormatShortDescriptionOptions extends FormatDescriptionOptions {
27
+ /**
28
+ * The maximum length of the short description. If the first sentence exceeds this length, it will be truncated.
29
+ *
30
+ * @defaultValue 60
31
+ */
32
+ length?: number;
33
+ }
34
+ /**
35
+ * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.
36
+ *
37
+ * @param description - The full description string.
38
+ * @param options - Options for formatting the short description, including the maximum length.
39
+ * @returns The extracted short description.
40
+ */
41
+ declare function formatShortDescription(description: string, options?: FormatShortDescriptionOptions): string;
42
+ //#endregion
43
+ export { FormatDescriptionOptions, FormatShortDescriptionOptions, formatDescription, formatShortDescription };
44
+ //# sourceMappingURL=description-helpers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-helpers.d.cts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"sourcesContent":[],"mappings":";UAkBiB,wBAAA;EAAA;AAkEjB;AASA;AAgBA;;;;;;;;;;;;;;;;;;;iBAzBgB,iBAAA,gCAEL;UAOM,6BAAA,SAAsC;;;;;;;;;;;;;;;iBAgBvC,sBAAA,gCAEL"}
@@ -0,0 +1,44 @@
1
+ //#region src/plugin-utils/description-helpers.d.ts
2
+ interface FormatDescriptionOptions {
3
+ /**
4
+ * If true, replaces newlines in the description with spaces. This is useful for ensuring that descriptions are displayed as a single line in contexts where multiline descriptions may not be supported or may cause formatting issues.
5
+ *
6
+ * @defaultValue false
7
+ */
8
+ replaceNewlines?: boolean;
9
+ /**
10
+ * If true, collapses multiple consecutive spaces in the description into a single space. This helps to ensure that descriptions are concise and do not contain unnecessary whitespace.
11
+ *
12
+ * @defaultValue false
13
+ */
14
+ collapseWhitespace?: boolean;
15
+ }
16
+ /**
17
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
18
+ *
19
+ * @remarks
20
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
21
+ *
22
+ * @param description - The full description string.
23
+ * @returns The formatted description string.
24
+ */
25
+ declare function formatDescription(description: string, options?: FormatDescriptionOptions): string;
26
+ interface FormatShortDescriptionOptions extends FormatDescriptionOptions {
27
+ /**
28
+ * The maximum length of the short description. If the first sentence exceeds this length, it will be truncated.
29
+ *
30
+ * @defaultValue 60
31
+ */
32
+ length?: number;
33
+ }
34
+ /**
35
+ * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.
36
+ *
37
+ * @param description - The full description string.
38
+ * @param options - Options for formatting the short description, including the maximum length.
39
+ * @returns The extracted short description.
40
+ */
41
+ declare function formatShortDescription(description: string, options?: FormatShortDescriptionOptions): string;
42
+ //#endregion
43
+ export { FormatDescriptionOptions, FormatShortDescriptionOptions, formatDescription, formatShortDescription };
44
+ //# sourceMappingURL=description-helpers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"sourcesContent":[],"mappings":";UAkBiB,wBAAA;EAAA;AAkEjB;AASA;AAgBA;;;;;;;;;;;;;;;;;;;iBAzBgB,iBAAA,gCAEL;UAOM,6BAAA,SAAsC;;;;;;;;;;;;;;;iBAgBvC,sBAAA,gCAEL"}
@@ -0,0 +1,101 @@
1
+ //#region src/plugin-utils/description-helpers.ts
2
+ const __ΩFormatDescriptionOptions = [
3
+ "replaceNewlines",
4
+ true,
5
+ "collapseWhitespace",
6
+ "FormatDescriptionOptions",
7
+ "P)4!8>\")4#8>\"Mw$y"
8
+ ];
9
+ /**
10
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
11
+ *
12
+ * @remarks
13
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
14
+ *
15
+ * @param description - The full description string.
16
+ * @returns The formatted description string.
17
+ */
18
+ function formatDescriptionWhitespace(description, options = {}) {
19
+ let formattedDescription = description.trim();
20
+ if (options.replaceNewlines) formattedDescription = formattedDescription.replace(/\s*\n\s*/g, " ");
21
+ if (options.collapseWhitespace) formattedDescription = formattedDescription.replace(/\s{2,}/g, " ");
22
+ return formattedDescription.trim();
23
+ }
24
+ formatDescriptionWhitespace.__type = [
25
+ "description",
26
+ () => __ΩFormatDescriptionOptions,
27
+ "options",
28
+ () => ({}),
29
+ "formatDescriptionWhitespace",
30
+ "P&2!n\"2#>$&/%"
31
+ ];
32
+ /**
33
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
34
+ *
35
+ * @remarks
36
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
37
+ *
38
+ * @param description - The full description string.
39
+ * @returns The formatted description string.
40
+ */
41
+ function formatDescriptionEscapes(description) {
42
+ return description.replaceAll("'", "\\'").replaceAll("\"", "\\\"").replaceAll("`", "\\`").replace(/\$\{/g, "\\${");
43
+ }
44
+ formatDescriptionEscapes.__type = [
45
+ "description",
46
+ "formatDescriptionEscapes",
47
+ "P&2!&/\""
48
+ ];
49
+ /**
50
+ * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.
51
+ *
52
+ * @remarks
53
+ * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.
54
+ *
55
+ * @param description - The full description string.
56
+ * @returns The formatted description string.
57
+ */
58
+ function formatDescription(description, options = {}) {
59
+ return formatDescriptionEscapes(formatDescriptionWhitespace(description, options));
60
+ }
61
+ formatDescription.__type = [
62
+ "description",
63
+ () => __ΩFormatDescriptionOptions,
64
+ "options",
65
+ () => ({}),
66
+ "formatDescription",
67
+ "P&2!n\"2#>$&/%"
68
+ ];
69
+ const __ΩFormatShortDescriptionOptions = [
70
+ () => __ΩFormatDescriptionOptions,
71
+ "length",
72
+ 60,
73
+ "FormatShortDescriptionOptions",
74
+ "Pn!'4\"8>#Mw$y"
75
+ ];
76
+ /**
77
+ * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.
78
+ *
79
+ * @param description - The full description string.
80
+ * @param options - Options for formatting the short description, including the maximum length.
81
+ * @returns The extracted short description.
82
+ */
83
+ function formatShortDescription(description, options = {}) {
84
+ const length = options.length ?? 60;
85
+ const formattedDescription = formatDescriptionWhitespace(description, options);
86
+ let result = ((formattedDescription.indexOf("\n") < length + 1 || formattedDescription.search(/[.!?\n]\s*\S/) > length + 1 ? formattedDescription.trim().match(/^.*[.!?\n]\s?\S/)?.[0]?.trim()?.slice(0, -1)?.trim() : void 0) || formattedDescription).trim();
87
+ if (result.trim().length > length) result = `${result.substring(0, Math.max(0, length - 3)).trim()}...`;
88
+ return formatDescriptionEscapes(result);
89
+ }
90
+ formatShortDescription.__type = [
91
+ "description",
92
+ () => __ΩFormatShortDescriptionOptions,
93
+ "options",
94
+ () => ({}),
95
+ "formatShortDescription",
96
+ "P&2!n\"2#>$&/%"
97
+ ];
98
+
99
+ //#endregion
100
+ export { __ΩFormatDescriptionOptions, __ΩFormatShortDescriptionOptions, formatDescription, formatShortDescription };
101
+ //# sourceMappingURL=description-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-helpers.mjs","names":[],"sources":["../../src/plugin-utils/description-helpers.ts"],"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\nexport interface FormatDescriptionOptions {\n /**\n * If true, replaces newlines in the description with spaces. This is useful for ensuring that descriptions are displayed as a single line in contexts where multiline descriptions may not be supported or may cause formatting issues.\n *\n * @defaultValue false\n */\n replaceNewlines?: boolean;\n\n /**\n * If true, collapses multiple consecutive spaces in the description into a single space. This helps to ensure that descriptions are concise and do not contain unnecessary whitespace.\n *\n * @defaultValue false\n */\n collapseWhitespace?: boolean;\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nfunction formatDescriptionWhitespace(\n description: string,\n options: FormatDescriptionOptions = {}\n): string {\n let formattedDescription = description.trim();\n if (options.replaceNewlines) {\n formattedDescription = formattedDescription.replace(/\\s*\\n\\s*/g, \" \");\n }\n if (options.collapseWhitespace) {\n formattedDescription = formattedDescription.replace(/\\s{2,}/g, \" \");\n }\n\n return formattedDescription.trim();\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nfunction formatDescriptionEscapes(description: string): string {\n return description\n .replaceAll(\"'\", \"\\\\'\")\n .replaceAll('\"', '\\\\\"')\n .replaceAll(\"`\", \"\\\\`\")\n .replace(/\\$\\{/g, \"\\\\${\");\n}\n\n/**\n * Formats a description string by trimming whitespace, replacing newlines with spaces (optionally), collapsing multiple spaces into a single space (optionally), and escaping special characters.\n *\n * @remarks\n * This is useful for ensuring that descriptions are concise and well-formatted when displayed in the CLI or documentation.\n *\n * @param description - The full description string.\n * @returns The formatted description string.\n */\nexport function formatDescription(\n description: string,\n options: FormatDescriptionOptions = {}\n): string {\n return formatDescriptionEscapes(\n formatDescriptionWhitespace(description, options)\n );\n}\n\nexport interface FormatShortDescriptionOptions extends FormatDescriptionOptions {\n /**\n * The maximum length of the short description. If the first sentence exceeds this length, it will be truncated.\n *\n * @defaultValue 60\n */\n length?: number;\n}\n\n/**\n * Extracts the short description from a longer description string. The short description is typically the first sentence or the first line of the description.\n *\n * @param description - The full description string.\n * @param options - Options for formatting the short description, including the maximum length.\n * @returns The extracted short description.\n */\nexport function formatShortDescription(\n description: string,\n options: FormatShortDescriptionOptions = {}\n): string {\n const length = options.length ?? 60;\n const formattedDescription = formatDescriptionWhitespace(\n description,\n options\n );\n\n const firstSentenceMatch =\n formattedDescription.indexOf(\"\\n\") < length + 1 ||\n formattedDescription.search(/[.!?\\n]\\s*\\S/) > length + 1\n ? formattedDescription\n .trim()\n .match(/^.*[.!?\\n]\\s?\\S/)?.[0]\n ?.trim()\n ?.slice(0, -1)\n ?.trim()\n : undefined;\n\n let result = (firstSentenceMatch || formattedDescription).trim();\n if (result.trim().length > length) {\n result = `${result.substring(0, Math.max(0, length - 3)).trim()}...`;\n }\n\n return formatDescriptionEscapes(result);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,SAAG,4BAAA,aAAA,UAAA,EAAA,EAAA;CACC,IAAI,uBAAe,YAAA,MAAA;AACnB,KAAA,QAAA,gBACI,wBAAsB,qBAAA,QAAA,aAAA,IAAA;gCAG5B,wBAAA,qBAAA,QAAA,WAAA,IAAA;AAED,QAAA,qBAAA,MAAA;;AAED,4BAA4B,SAAS;CAAC;OAAqB;CAA6B;QAAkB,EAAE;CAAG;CAAW;CAAA;;;;;;;;;;AAU1H,SAAS,yBAAsB,aAAA;AAC3B,QAAO,YACT,WAAA,KAAA,MAAA,CACO,WAAW,MAAK,OAAM,CACtB,WAAW,KAAK,MAAM,CAC7B,QAAA,SAAA,OAAA;;AAEF,yBAAyB,SAAS;CAAC;CAAC;CAAA;CAAA;;;;;;;;;;AAUpC,SAAgB,kBAAkB,aAAU,UAAA,EAAA,EAAA;AAC1C,QAAA,yBAAA,4BAAA,aAAA,QAAA,CAAA;;AAEF,kBAAkB,SAAC;CAAA;OAAA;CAAA;QAAA,EAAA;CAAA;CAAA;CAAA;AACnB,MAAM,mCAAoB;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;;AAS1B,SAAU,uBAAA,aAAA,UAAA,EAAA,EAAA;CACN,MAAM,SAAS,QAAQ,UAAU;CACpC,MAAA,uBAAA,4BAAA,aAAA,QAAA;CAUE,IAAA,WAT4B,qBAAoB,QAAA,KAAA,GAAA,SAAA,KAC3C,qBAAqB,OAAO,eAAQ,GAAA,SAAA,IAC1C,qBACW,MAAM,CACN,MAAM,kBAAE,GAAA,IACP,MAAM,EACV,MAAA,GAAA,GAAA,EACI,MAAM,GACV,WACP,sBAAA,MAAA;AACH,KAAA,OAAA,MAAA,CAAA,SAAA;AAGI,QAAA,yBAAA,OAAA;;AAEJ,uBAAG,SAAA;CAAA;OAAA;CAAA;QAAA,EAAA;CAAA;CAAA;CAAA"}
@@ -1,4 +1,5 @@
1
1
  const require_context_helpers = require('./context-helpers.cjs');
2
+ const require_traverse_command_tree = require('./traverse-command-tree.cjs');
2
3
 
3
4
  //#region src/plugin-utils/get-command-tree.ts
4
5
  function __assignType(fn, args) {
@@ -34,7 +35,32 @@ getCommandTree.__type = [
34
35
  "getCommandTree",
35
36
  "P\"w!2\"\"2#P\"w$,J/%"
36
37
  ];
38
+ /**
39
+ * Retrieves a list of all command trees defined in the context.
40
+ *
41
+ * @param context - The build context containing the command definitions.
42
+ * @returns A promise that resolves to an array of all command trees in the context.
43
+ */
44
+ async function getCommandList(context) {
45
+ const commandList = [];
46
+ await require_traverse_command_tree.traverseCommands(context, __assignType((commandTree) => {
47
+ commandList.push(commandTree);
48
+ }, [
49
+ "commandTree",
50
+ "",
51
+ "P\"2!\"/\""
52
+ ]));
53
+ return commandList;
54
+ }
55
+ getCommandList.__type = [
56
+ "Context",
57
+ "context",
58
+ "CommandTree",
59
+ "getCommandList",
60
+ "P\"w!2\"\"w#F`/$"
61
+ ];
37
62
 
38
63
  //#endregion
64
+ exports.getCommandList = getCommandList;
39
65
  exports.getCommandTree = getCommandTree;
40
66
  //# sourceMappingURL=get-command-tree.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-command-tree.cjs","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"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 type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { isDynamicPathSegment } from \"./context-helpers\";\n\n/**\n * Retrieves a specific command tree based on the provided path.\n *\n * @param context - The build context containing the command definitions.\n * @param path - An array of strings representing the command path.\n * @returns The command tree at the specified path, or null if not found.\n */\nexport function getCommandTree(\n context: Context,\n path = [] as string[]\n): CommandTree | null {\n if (path.length === 0) {\n return null;\n }\n\n let currentTree: CommandTree | null = context.commands[path[0]!] ?? null;\n if (path.length > 1) {\n const segments = path\n .slice(1)\n .filter(segment => !isDynamicPathSegment(segment));\n for (const segment of segments) {\n if (\n currentTree?.children &&\n Object.prototype.hasOwnProperty.call(currentTree.children, segment)\n ) {\n currentTree = currentTree.children[segment] ?? null;\n } else {\n return null;\n }\n }\n }\n\n return currentTree;\n}\n"],"mappings":";;;AAAA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;;;;;;;;AAUX,SAAgB,eAAe,SAAS,OAAO,EAAE,EAAE;uBAE3C,QAAO;CAEX,IAAI,cAAc,QAAQ,SAAS,KAAK,OAAO;;EAE3C,MAAM,WAAW,KACZ,MAAM,EAAE,CACR,OAAO,cAAa,YAAW,CAAC,6CAAW,QAAA,EAAA;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;iCAEtD,KAAA,aAAA,YACc,OAAO,UAAU,eAAe,KAAK,YAAU,UAAA,QAAA,CAC9D,eAAA,YAAA,SAAA,YAAA;MAGe,QAAO;;AAInB,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA"}
1
+ {"version":3,"file":"get-command-tree.cjs","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"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 type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { isDynamicPathSegment } from \"./context-helpers\";\nimport { traverseCommands } from \"./traverse-command-tree\";\n\n/**\n * Retrieves a specific command tree based on the provided path.\n *\n * @param context - The build context containing the command definitions.\n * @param path - An array of strings representing the command path.\n * @returns The command tree at the specified path, or null if not found.\n */\nexport function getCommandTree(\n context: Context,\n path = [] as string[]\n): CommandTree | null {\n if (path.length === 0) {\n return null;\n }\n\n let currentTree: CommandTree | null = context.commands[path[0]!] ?? null;\n if (path.length > 1) {\n const segments = path\n .slice(1)\n .filter(segment => !isDynamicPathSegment(segment));\n for (const segment of segments) {\n if (\n currentTree?.children &&\n Object.prototype.hasOwnProperty.call(currentTree.children, segment)\n ) {\n currentTree = currentTree.children[segment] ?? null;\n } else {\n return null;\n }\n }\n }\n\n return currentTree;\n}\n\n/**\n * Retrieves a list of all command trees defined in the context.\n *\n * @param context - The build context containing the command definitions.\n * @returns A promise that resolves to an array of all command trees in the context.\n */\nexport async function getCommandList(context: Context): Promise<CommandTree[]> {\n const commandList: CommandTree[] = [];\n await traverseCommands(context, commandTree => {\n commandList.push(commandTree);\n });\n\n return commandList;\n}\n"],"mappings":";;;;AAAA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;;;;;;;;;AAYP,KAAI,KAAK,WAAW;;AAIpB,KAAI,KAAK,SAAS,GAAG;EACjB,MAAM,WAAW,KACZ,MAAM,EAAE,CACR,OAAO,cAAa,YAAW,CAAC,6CAAa,QAAA,EAAA;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;iCAExD,KAAA,aAAA,YACc,OAAO,UAAU,eAAe,KAAK,YAAU,UAAA,QAAA,CAC9D,eAAA,YAAA,SAAA,YAAA;MAGe,QAAO;;AAInB,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;AAOzB,eAAc,eAAA,SAAA;CACV,MAAM,cAAc,EAAE;AACtB,OAAM,+CAAiB,SAAS,cAAA,gBAAA;AAC5B,cAAC,KAAA,YAAA;IACF;EAAC;EAAe;EAAI;EAAI,CAAA,CAAA;AAC3B,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAW;CAAW;CAAY;CAAA;CAAA"}
@@ -11,6 +11,13 @@ import { Context } from "../types/context.cjs";
11
11
  * @returns The command tree at the specified path, or null if not found.
12
12
  */
13
13
  declare function getCommandTree(context: Context, path?: string[]): CommandTree | null;
14
+ /**
15
+ * Retrieves a list of all command trees defined in the context.
16
+ *
17
+ * @param context - The build context containing the command definitions.
18
+ * @returns A promise that resolves to an array of all command trees in the context.
19
+ */
20
+ declare function getCommandList(context: Context): Promise<CommandTree[]>;
14
21
  //#endregion
15
- export { getCommandTree };
22
+ export { getCommandList, getCommandTree };
16
23
  //# sourceMappingURL=get-command-tree.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-command-tree.d.cts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;iBAAgB,cAAA,UACL,2BAER"}
1
+ {"version":3,"file":"get-command-tree.d.cts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;AAkCA;;;;AAA+D,iBAlC/C,cAAA,CAkC+C,OAAA,EAjCpD,OAiCoD,EAAA,IAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EA/B5D,WA+B4D,GAAA,IAAA;;;;;;;iBAAzC,cAAA,UAAwB,UAAU,QAAQ"}
@@ -11,6 +11,13 @@ import { Context } from "../types/context.mjs";
11
11
  * @returns The command tree at the specified path, or null if not found.
12
12
  */
13
13
  declare function getCommandTree(context: Context, path?: string[]): CommandTree | null;
14
+ /**
15
+ * Retrieves a list of all command trees defined in the context.
16
+ *
17
+ * @param context - The build context containing the command definitions.
18
+ * @returns A promise that resolves to an array of all command trees in the context.
19
+ */
20
+ declare function getCommandList(context: Context): Promise<CommandTree[]>;
14
21
  //#endregion
15
- export { getCommandTree };
22
+ export { getCommandList, getCommandTree };
16
23
  //# sourceMappingURL=get-command-tree.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-command-tree.d.mts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;iBAAgB,cAAA,UACL,2BAER"}
1
+ {"version":3,"file":"get-command-tree.d.mts","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;AAkCA;;;;AAA+D,iBAlC/C,cAAA,CAkC+C,OAAA,EAjCpD,OAiCoD,EAAA,IAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EA/B5D,WA+B4D,GAAA,IAAA;;;;;;;iBAAzC,cAAA,UAAwB,UAAU,QAAQ"}
@@ -1,4 +1,5 @@
1
1
  import { isDynamicPathSegment } from "./context-helpers.mjs";
2
+ import { traverseCommands } from "./traverse-command-tree.mjs";
2
3
 
3
4
  //#region src/plugin-utils/get-command-tree.ts
4
5
  function __assignType(fn, args) {
@@ -34,7 +35,31 @@ getCommandTree.__type = [
34
35
  "getCommandTree",
35
36
  "P\"w!2\"\"2#P\"w$,J/%"
36
37
  ];
38
+ /**
39
+ * Retrieves a list of all command trees defined in the context.
40
+ *
41
+ * @param context - The build context containing the command definitions.
42
+ * @returns A promise that resolves to an array of all command trees in the context.
43
+ */
44
+ async function getCommandList(context) {
45
+ const commandList = [];
46
+ await traverseCommands(context, __assignType((commandTree) => {
47
+ commandList.push(commandTree);
48
+ }, [
49
+ "commandTree",
50
+ "",
51
+ "P\"2!\"/\""
52
+ ]));
53
+ return commandList;
54
+ }
55
+ getCommandList.__type = [
56
+ "Context",
57
+ "context",
58
+ "CommandTree",
59
+ "getCommandList",
60
+ "P\"w!2\"\"w#F`/$"
61
+ ];
37
62
 
38
63
  //#endregion
39
- export { getCommandTree };
64
+ export { getCommandList, getCommandTree };
40
65
  //# sourceMappingURL=get-command-tree.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-command-tree.mjs","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"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 type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { isDynamicPathSegment } from \"./context-helpers\";\n\n/**\n * Retrieves a specific command tree based on the provided path.\n *\n * @param context - The build context containing the command definitions.\n * @param path - An array of strings representing the command path.\n * @returns The command tree at the specified path, or null if not found.\n */\nexport function getCommandTree(\n context: Context,\n path = [] as string[]\n): CommandTree | null {\n if (path.length === 0) {\n return null;\n }\n\n let currentTree: CommandTree | null = context.commands[path[0]!] ?? null;\n if (path.length > 1) {\n const segments = path\n .slice(1)\n .filter(segment => !isDynamicPathSegment(segment));\n for (const segment of segments) {\n if (\n currentTree?.children &&\n Object.prototype.hasOwnProperty.call(currentTree.children, segment)\n ) {\n currentTree = currentTree.children[segment] ?? null;\n } else {\n return null;\n }\n }\n }\n\n return currentTree;\n}\n"],"mappings":";;;AAAA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;;;;;;;;AAUX,SAAgB,eAAe,SAAS,OAAO,EAAE,EAAE;uBAE3C,QAAO;CAEX,IAAI,cAAc,QAAQ,SAAS,KAAK,OAAO;;EAE3C,MAAM,WAAW,KACZ,MAAM,EAAE,CACR,OAAO,cAAa,YAAW,CAAC,qBAAW,QAAA,EAAA;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;iCAEtD,KAAA,aAAA,YACc,OAAO,UAAU,eAAe,KAAK,YAAU,UAAA,QAAA,CAC9D,eAAA,YAAA,SAAA,YAAA;MAGe,QAAO;;AAInB,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA"}
1
+ {"version":3,"file":"get-command-tree.mjs","names":[],"sources":["../../src/plugin-utils/get-command-tree.ts"],"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 type { CommandTree } from \"../types/command\";\nimport type { Context } from \"../types/context\";\nimport { isDynamicPathSegment } from \"./context-helpers\";\nimport { traverseCommands } from \"./traverse-command-tree\";\n\n/**\n * Retrieves a specific command tree based on the provided path.\n *\n * @param context - The build context containing the command definitions.\n * @param path - An array of strings representing the command path.\n * @returns The command tree at the specified path, or null if not found.\n */\nexport function getCommandTree(\n context: Context,\n path = [] as string[]\n): CommandTree | null {\n if (path.length === 0) {\n return null;\n }\n\n let currentTree: CommandTree | null = context.commands[path[0]!] ?? null;\n if (path.length > 1) {\n const segments = path\n .slice(1)\n .filter(segment => !isDynamicPathSegment(segment));\n for (const segment of segments) {\n if (\n currentTree?.children &&\n Object.prototype.hasOwnProperty.call(currentTree.children, segment)\n ) {\n currentTree = currentTree.children[segment] ?? null;\n } else {\n return null;\n }\n }\n }\n\n return currentTree;\n}\n\n/**\n * Retrieves a list of all command trees defined in the context.\n *\n * @param context - The build context containing the command definitions.\n * @returns A promise that resolves to an array of all command trees in the context.\n */\nexport async function getCommandList(context: Context): Promise<CommandTree[]> {\n const commandList: CommandTree[] = [];\n await traverseCommands(context, commandTree => {\n commandList.push(commandTree);\n });\n\n return commandList;\n}\n"],"mappings":";;;;AAAA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;;;;;;;;;AAYP,KAAI,KAAK,WAAW;;AAIpB,KAAI,KAAK,SAAS,GAAG;EACjB,MAAM,WAAW,KACZ,MAAM,EAAE,CACR,OAAO,cAAa,YAAW,CAAC,qBAAa,QAAA,EAAA;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;iCAExD,KAAA,aAAA,YACc,OAAO,UAAU,eAAe,KAAK,YAAU,UAAA,QAAA,CAC9D,eAAA,YAAA,SAAA,YAAA;MAGe,QAAO;;AAInB,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;;AAOzB,eAAc,eAAA,SAAA;CACV,MAAM,cAAc,EAAE;AACtB,OAAM,iBAAiB,SAAS,cAAA,gBAAA;AAC5B,cAAC,KAAA,YAAA;IACF;EAAC;EAAe;EAAI;EAAI,CAAA,CAAA;AAC3B,QAAO;;AAEX,eAAe,SAAS;CAAC;CAAW;CAAW;CAAY;CAAA;CAAA"}
@@ -2,15 +2,21 @@ const require_context_helpers = require('./context-helpers.cjs');
2
2
  const require_reflect = require('./reflect.cjs');
3
3
  const require_type_checks = require('./type-checks.cjs');
4
4
  const require_deepkit = require('./deepkit.cjs');
5
- const require_get_command_tree = require('./get-command-tree.cjs');
5
+ const require_description_helpers = require('./description-helpers.cjs');
6
6
  const require_traverse_command_tree = require('./traverse-command-tree.cjs');
7
+ const require_get_command_tree = require('./get-command-tree.cjs');
7
8
 
9
+ exports.__ΩFormatDescriptionOptions = require_description_helpers.__ΩFormatDescriptionOptions;
10
+ exports.__ΩFormatShortDescriptionOptions = require_description_helpers.__ΩFormatShortDescriptionOptions;
8
11
  exports.extractReflectionKind = require_deepkit.extractReflectionKind;
9
12
  exports.extractType = require_deepkit.extractType;
13
+ exports.formatDescription = require_description_helpers.formatDescription;
14
+ exports.formatShortDescription = require_description_helpers.formatShortDescription;
10
15
  exports.getAppBin = require_context_helpers.getAppBin;
11
16
  exports.getAppDescription = require_context_helpers.getAppDescription;
12
17
  exports.getAppName = require_context_helpers.getAppName;
13
18
  exports.getAppTitle = require_context_helpers.getAppTitle;
19
+ exports.getCommandList = require_get_command_tree.getCommandList;
14
20
  exports.getCommandTree = require_get_command_tree.getCommandTree;
15
21
  exports.getDynamicPathSegmentName = require_context_helpers.getDynamicPathSegmentName;
16
22
  exports.getPathSegmentGroupName = require_context_helpers.getPathSegmentGroupName;
@@ -1,7 +1,8 @@
1
1
  import { getAppBin, getAppDescription, getAppName, getAppTitle, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases } from "./context-helpers.cjs";
2
2
  import { extractReflectionKind, extractType } from "./deepkit.cjs";
3
- import { getCommandTree } from "./get-command-tree.cjs";
3
+ import { FormatDescriptionOptions, FormatShortDescriptionOptions, formatDescription, formatShortDescription } from "./description-helpers.cjs";
4
+ import { getCommandList, getCommandTree } from "./get-command-tree.cjs";
4
5
  import { sortOptions } from "./reflect.cjs";
5
6
  import { traverseCommandTree, traverseCommands } from "./traverse-command-tree.cjs";
6
7
  import { isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind } from "./type-checks.cjs";
7
- export { extractReflectionKind, extractType, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
8
+ export { FormatDescriptionOptions, FormatShortDescriptionOptions, extractReflectionKind, extractType, formatDescription, formatShortDescription, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandList, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
@@ -1,7 +1,8 @@
1
1
  import { getAppBin, getAppDescription, getAppName, getAppTitle, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases } from "./context-helpers.mjs";
2
2
  import { extractReflectionKind, extractType } from "./deepkit.mjs";
3
- import { getCommandTree } from "./get-command-tree.mjs";
3
+ import { FormatDescriptionOptions, FormatShortDescriptionOptions, formatDescription, formatShortDescription } from "./description-helpers.mjs";
4
+ import { getCommandList, getCommandTree } from "./get-command-tree.mjs";
4
5
  import { sortOptions } from "./reflect.mjs";
5
6
  import { traverseCommandTree, traverseCommands } from "./traverse-command-tree.mjs";
6
7
  import { isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind } from "./type-checks.mjs";
7
- export { extractReflectionKind, extractType, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
8
+ export { FormatDescriptionOptions, FormatShortDescriptionOptions, extractReflectionKind, extractType, formatDescription, formatShortDescription, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandList, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
@@ -2,7 +2,8 @@ import { getAppBin, getAppDescription, getAppName, getAppTitle, getDynamicPathSe
2
2
  import { sortOptions } from "./reflect.mjs";
3
3
  import { isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind } from "./type-checks.mjs";
4
4
  import { extractReflectionKind, extractType } from "./deepkit.mjs";
5
- import { getCommandTree } from "./get-command-tree.mjs";
5
+ import { __ΩFormatDescriptionOptions, __ΩFormatShortDescriptionOptions, formatDescription, formatShortDescription } from "./description-helpers.mjs";
6
6
  import { traverseCommandTree, traverseCommands } from "./traverse-command-tree.mjs";
7
+ import { getCommandList, getCommandTree } from "./get-command-tree.mjs";
7
8
 
8
- export { extractReflectionKind, extractType, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
9
+ export { __ΩFormatDescriptionOptions, __ΩFormatShortDescriptionOptions, extractReflectionKind, extractType, formatDescription, formatShortDescription, getAppBin, getAppDescription, getAppName, getAppTitle, getCommandList, getCommandTree, getDynamicPathSegmentName, getPathSegmentGroupName, getPathSegmentName, isCommandArgument, isCommandOption, isCommandParameter, isCommandParameterConfig, isCommandParameterKind, isDynamicPathSegment, isPathSegmentGroup, sortArgAliases, sortOptions, traverseCommandTree, traverseCommands };
@@ -1 +1 @@
1
- {"version":3,"file":"type-checks.d.cts","names":[],"sources":["../../src/plugin-utils/type-checks.ts"],"sourcesContent":[],"mappings":";;;;;;AAoCA;AAiBA;AAYA;AA0BA;AAYgB,iBAnEA,sBAAA,CAmEoC,GAAA,EAAe,GAAA,CAAA,EAAA,GAAA,IAnEV,oBAmEU;;;;;;;iBAlDnD,wBAAA,mBAEN;;;;;;;iBAUM,kBAAA,mBAAqC;;;;;;;iBA0BrC,eAAA,mBAAkC;;;;;;;iBAYlC,iBAAA,mBAAoC"}
1
+ {"version":3,"file":"type-checks.d.cts","names":[],"sources":["../../src/plugin-utils/type-checks.ts"],"sourcesContent":[],"mappings":";;;;;;AAoCA;AAiBA;AAYA;AA0BA;AAYgB,iBAnEA,sBAAA,CAmEoC,GAAA,EAAA,GAAe,CAAA,EAAA,GAAA,IAnEV,oBAmEU;;;;;;;iBAlDnD,wBAAA,mBAEN;;;;;;;iBAUM,kBAAA,mBAAqC;;;;;;;iBA0BrC,eAAA,mBAAkC;;;;;;;iBAYlC,iBAAA,mBAAoC"}