@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
@@ -1,5 +1,5 @@
1
1
  import { CommandTree } from "../types/command.mjs";
2
- import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import * as _alloy_js_core14 from "@alloy-js/core";
3
3
  import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
4
4
 
5
5
  //#region src/components/docs.d.ts
@@ -12,7 +12,7 @@ interface CommandOptionsDocsProps {
12
12
  /**
13
13
  * Generates the options markdown documentation for a command.
14
14
  */
15
- declare function CommandOptionsDocs(props: CommandOptionsDocsProps): _alloy_js_core16.Children;
15
+ declare function CommandOptionsDocs(props: CommandOptionsDocsProps): _alloy_js_core14.Children;
16
16
  interface CommandDocsUsageExampleProps {
17
17
  /**
18
18
  * The package manager to generate the usage example for.
@@ -31,7 +31,7 @@ interface CommandDocsUsageExampleProps {
31
31
  /**
32
32
  * Generates the markdown documentation for a command.
33
33
  */
34
- declare function CommandDocsUsageExample(props: CommandDocsUsageExampleProps): _alloy_js_core16.Children;
34
+ declare function CommandDocsUsageExample(props: CommandDocsUsageExampleProps): _alloy_js_core14.Children;
35
35
  interface CommandDocsProps {
36
36
  /**
37
37
  * The heading level offset to apply to the generated documentation.
@@ -56,7 +56,7 @@ interface CommandDocsProps {
56
56
  /**
57
57
  * Generates the markdown documentation for a command.
58
58
  */
59
- declare function CommandDocs(props: CommandDocsProps): _alloy_js_core16.Children;
59
+ declare function CommandDocs(props: CommandDocsProps): _alloy_js_core14.Children;
60
60
  interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
61
61
  /**
62
62
  * The heading level offset to apply to the generated documentation.
@@ -75,7 +75,7 @@ interface CommandDocsFileProps extends Partial<MarkdownFileProps> {
75
75
  /**
76
76
  * Generates the markdown documentation file for a command.
77
77
  */
78
- declare function CommandDocsFile(props: CommandDocsFileProps): _alloy_js_core16.Children;
78
+ declare function CommandDocsFile(props: CommandDocsFileProps): _alloy_js_core14.Children;
79
79
  //#endregion
80
80
  export { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps };
81
81
  //# sourceMappingURL=docs.d.mts.map
@@ -1,4 +1,5 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_types_command = require('../types/command.cjs');
2
3
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
4
  let __alloy_js_core = require("@alloy-js/core");
4
5
 
@@ -52,9 +53,17 @@ function IsNotVerbose() {
52
53
  __alloy_js_core.code`)`
53
54
  ];
54
55
  }
56
+ /**
57
+ * Write the type declaration for a command parameter based on its configuration.
58
+ */
59
+ function CommandParameterType(props) {
60
+ const { parameter } = props;
61
+ return __alloy_js_core.code`${(parameter.kind === require_types_command.CommandParameterKinds.string || parameter.kind === require_types_command.CommandParameterKinds.number) && parameter.choices && parameter.choices.length > 0 ? parameter.choices.map((choice) => typeof choice === "string" ? `"${choice}"` : choice).join(" | ") : parameter.kind === require_types_command.CommandParameterKinds.boolean ? "boolean" : parameter.kind === require_types_command.CommandParameterKinds.number ? "number" : "string"}${(parameter.kind === require_types_command.CommandParameterKinds.string || parameter.kind === require_types_command.CommandParameterKinds.number) && parameter.variadic ? "[]" : ""}${parameter.optional ? " | undefined" : ""}`;
62
+ }
55
63
 
56
64
  //#endregion
57
65
  exports.BooleanInputParserLogic = BooleanInputParserLogic;
66
+ exports.CommandParameterType = CommandParameterType;
58
67
  exports.IsDebug = IsDebug;
59
68
  exports.IsNotDebug = IsNotDebug;
60
69
  exports.IsNotVerbose = IsNotVerbose;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.cjs","names":["code","BooleanInputParserLogic","props","name","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.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\";\n\nexport interface BooleanInputParserLogicProps {\n name: string;\n}\n\n/**\n * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.\n */\nexport function BooleanInputParserLogic(props: BooleanInputParserLogicProps) {\n const { name } = props;\n\n return (\n <>{code` !!${name} && ${name}.toLowerCase() !== \"false\" && ${\n name\n }.toLowerCase() !== \"f\" && ${name}.toLowerCase() !== \"no\" && ${\n name\n } !== \"n\" && ${name}.toLowerCase() !== \"0\" && ${\n name\n }.toLowerCase() !== \"off\" && ${\n name\n } !== \"disable\" && ${name}.toLowerCase() !== \"disabled\" && ${\n name\n }.toLowerCase() !== \"never\" && (Number.isNaN(Number.parseFloat(${\n name\n })) || Number.parseFloat(${name}) > 0) `}</>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;;AA2BA,SAAgBC,wBAAwBC,OAAqC;CAC3E,MAAM,EAAEC,SAASD;AAEjB,QAAA,CACKF,oBAAI,MAAMG,KAAI,MAAOA,KAAI,gCAC1BA,KAAI,4BACuBA,KAAI,6BAC/BA,KAAI,cACSA,KAAI,4BACjBA,KAAI,8BAEJA,KAAI,oBACeA,KAAI,mCACvBA,KAAI,gEAEJA,KAAI,0BACqBA,KAAI,SAAS;;;;;;;;AAU5C,SAAgBC,UAAU;AACxB,QAAOJ,oBAAI;;;;;AAMb,SAAgBK,aAAa;AAC3B,QAAA;EAEKL,oBAAI;mDACJI,SAAO,EAAA,CAAA;EACPJ,oBAAI;EAAG;;;;;;;;AAWd,SAAgBO,YAAY;AAC1B,QAAA;EAEKP,oBAAI;mDACJI,SAAO,EAAA,CAAA;EACPJ,oBAAI;EAA4D;;;;;AAQvE,SAAgBQ,eAAe;AAC7B,QAAA;EAEKR,oBAAI;mDACJO,WAAS,EAAA,CAAA;EACTP,oBAAI;EAAG"}
1
+ {"version":3,"file":"helpers.cjs","names":["code","CommandParameterKinds","BooleanInputParserLogic","props","name","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose","CommandParameterType","parameter","kind","string","number","choices","length","map","choice","join","boolean","variadic","optional"],"sources":["../../src/components/helpers.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 type { CommandParameter } from \"../types\";\nimport { CommandParameterKinds } from \"../types\";\n\nexport interface BooleanInputParserLogicProps {\n name: string;\n}\n\n/**\n * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.\n */\nexport function BooleanInputParserLogic(props: BooleanInputParserLogicProps) {\n const { name } = props;\n\n return (\n <>{code` !!${name} && ${name}.toLowerCase() !== \"false\" && ${\n name\n }.toLowerCase() !== \"f\" && ${name}.toLowerCase() !== \"no\" && ${\n name\n } !== \"n\" && ${name}.toLowerCase() !== \"0\" && ${\n name\n }.toLowerCase() !== \"off\" && ${\n name\n } !== \"disable\" && ${name}.toLowerCase() !== \"disabled\" && ${\n name\n }.toLowerCase() !== \"never\" && (Number.isNaN(Number.parseFloat(${\n name\n })) || Number.parseFloat(${name}) > 0) `}</>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the type declaration for a command parameter based on its configuration.\n */\nexport function CommandParameterType(props: { parameter: CommandParameter }) {\n const { parameter } = props;\n\n return code`${\n (parameter.kind === CommandParameterKinds.string ||\n parameter.kind === CommandParameterKinds.number) &&\n parameter.choices &&\n parameter.choices.length > 0\n ? parameter.choices\n .map(choice => (typeof choice === \"string\" ? `\"${choice}\"` : choice))\n .join(\" | \")\n : parameter.kind === CommandParameterKinds.boolean\n ? \"boolean\"\n : parameter.kind === CommandParameterKinds.number\n ? \"number\"\n : \"string\"\n }${\n (parameter.kind === CommandParameterKinds.string ||\n parameter.kind === CommandParameterKinds.number) &&\n parameter.variadic\n ? \"[]\"\n : \"\"\n }${parameter.optional ? \" | undefined\" : \"\"}`;\n}\n"],"mappings":";;;;;;;;;AA6BA,SAAgBE,wBAAwBC,OAAqC;CAC3E,MAAM,EAAEC,SAASD;AAEjB,QAAA,CACKH,oBAAI,MAAMI,KAAI,MAAOA,KAAI,gCAC1BA,KAAI,4BACuBA,KAAI,6BAC/BA,KAAI,cACSA,KAAI,4BACjBA,KAAI,8BAEJA,KAAI,oBACeA,KAAI,mCACvBA,KAAI,gEAEJA,KAAI,0BACqBA,KAAI,SAAS;;;;;;;;AAU5C,SAAgBC,UAAU;AACxB,QAAOL,oBAAI;;;;;AAMb,SAAgBM,aAAa;AAC3B,QAAA;EAEKN,oBAAI;mDACJK,SAAO,EAAA,CAAA;EACPL,oBAAI;EAAG;;;;;;;;AAWd,SAAgBQ,YAAY;AAC1B,QAAA;EAEKR,oBAAI;mDACJK,SAAO,EAAA,CAAA;EACPL,oBAAI;EAA4D;;;;;AAQvE,SAAgBS,eAAe;AAC7B,QAAA;EAEKT,oBAAI;mDACJQ,WAAS,EAAA,CAAA;EACTR,oBAAI;EAAG;;;;;AAQd,SAAgBU,qBAAqBP,OAAwC;CAC3E,MAAM,EAAEQ,cAAcR;AAEtB,QAAOH,oBAAI,IACRW,UAAUC,SAASX,4CAAsBY,UACxCF,UAAUC,SAASX,4CAAsBa,WAC3CH,UAAUI,WACVJ,UAAUI,QAAQC,SAAS,IACvBL,UAAUI,QACPE,KAAIC,WAAW,OAAOA,WAAW,WAAW,IAAIA,OAAM,KAAMA,OAAQ,CACpEC,KAAK,MAAM,GACdR,UAAUC,SAASX,4CAAsBmB,UACvC,YACAT,UAAUC,SAASX,4CAAsBa,SACvC,WACA,YAEPH,UAAUC,SAASX,4CAAsBY,UACxCF,UAAUC,SAASX,4CAAsBa,WAC3CH,UAAUU,WACN,OACA,KACHV,UAAUW,WAAW,iBAAiB"}
@@ -1,4 +1,6 @@
1
- import * as _alloy_js_core19 from "@alloy-js/core";
1
+ import { CommandParameter } from "../types/command.cjs";
2
+ import "../types/index.cjs";
3
+ import * as _alloy_js_core11 from "@alloy-js/core";
2
4
 
3
5
  //#region src/components/helpers.d.ts
4
6
  interface BooleanInputParserLogicProps {
@@ -7,29 +9,35 @@ interface BooleanInputParserLogicProps {
7
9
  /**
8
10
  * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.
9
11
  */
10
- declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core19.Children;
12
+ declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core11.Children;
11
13
  /**
12
14
  * Write the logic to determine if the application is running in debug mode.
13
15
  *
14
16
  * @remarks
15
17
  * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
16
18
  */
17
- declare function IsDebug(): _alloy_js_core19.Children;
19
+ declare function IsDebug(): _alloy_js_core11.Children;
18
20
  /**
19
21
  * Write the logic to determine if the application is **not** running in debug mode.
20
22
  */
21
- declare function IsNotDebug(): _alloy_js_core19.Children;
23
+ declare function IsNotDebug(): _alloy_js_core11.Children;
22
24
  /**
23
25
  * Write the logic to determine if the application is running in verbose mode.
24
26
  *
25
27
  * @remarks
26
28
  * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
27
29
  */
28
- declare function IsVerbose(): _alloy_js_core19.Children;
30
+ declare function IsVerbose(): _alloy_js_core11.Children;
29
31
  /**
30
32
  * Write the logic to determine if the application is **not** running in verbose mode.
31
33
  */
32
- declare function IsNotVerbose(): _alloy_js_core19.Children;
34
+ declare function IsNotVerbose(): _alloy_js_core11.Children;
35
+ /**
36
+ * Write the type declaration for a command parameter based on its configuration.
37
+ */
38
+ declare function CommandParameterType(props: {
39
+ parameter: CommandParameter;
40
+ }): _alloy_js_core11.Children;
33
41
  //#endregion
34
- export { BooleanInputParserLogic, BooleanInputParserLogicProps, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
42
+ export { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
35
43
  //# sourceMappingURL=helpers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;AA0BA;AAOgB,iBAjCA,uBAAA,CAiCU,KAAA,EAjCqB,4BAiCrB,CAAA,EAjCiD,gBAAA,CAAA,QAiCjD;AAgB1B;AAaA;;;;;iBApCgB,OAAA,CAAA,GAAO,gBAAA,CAAA;;;;iBAOP,UAAA,CAAA,GAAU,gBAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,gBAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,gBAAA,CAAA"}
1
+ {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;UAsBiB,4BAAA;;;;AAAjB;AAOA;AA0BgB,iBA1BA,uBAAA,CA0BO,KAAA,EA1BwB,4BA0BxB,CAAA,EA1BoD,gBAAA,CAAA,QA0BpD;AAOvB;AAgBA;AAaA;AAaA;;;iBAjDgB,OAAA,CAAA,GAAO,gBAAA,CAAA;;;;iBAOP,UAAA,CAAA,GAAU,gBAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,gBAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,gBAAA,CAAA;;;;iBAaZ,oBAAA;aAAyC;IAAgB,gBAAA,CAAE"}
@@ -1,4 +1,6 @@
1
- import * as _alloy_js_core20 from "@alloy-js/core";
1
+ import { CommandParameter } from "../types/command.mjs";
2
+ import "../types/index.mjs";
3
+ import * as _alloy_js_core7 from "@alloy-js/core";
2
4
 
3
5
  //#region src/components/helpers.d.ts
4
6
  interface BooleanInputParserLogicProps {
@@ -7,29 +9,35 @@ interface BooleanInputParserLogicProps {
7
9
  /**
8
10
  * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.
9
11
  */
10
- declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core20.Children;
12
+ declare function BooleanInputParserLogic(props: BooleanInputParserLogicProps): _alloy_js_core7.Children;
11
13
  /**
12
14
  * Write the logic to determine if the application is running in debug mode.
13
15
  *
14
16
  * @remarks
15
17
  * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
16
18
  */
17
- declare function IsDebug(): _alloy_js_core20.Children;
19
+ declare function IsDebug(): _alloy_js_core7.Children;
18
20
  /**
19
21
  * Write the logic to determine if the application is **not** running in debug mode.
20
22
  */
21
- declare function IsNotDebug(): _alloy_js_core20.Children;
23
+ declare function IsNotDebug(): _alloy_js_core7.Children;
22
24
  /**
23
25
  * Write the logic to determine if the application is running in verbose mode.
24
26
  *
25
27
  * @remarks
26
28
  * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
27
29
  */
28
- declare function IsVerbose(): _alloy_js_core20.Children;
30
+ declare function IsVerbose(): _alloy_js_core7.Children;
29
31
  /**
30
32
  * Write the logic to determine if the application is **not** running in verbose mode.
31
33
  */
32
- declare function IsNotVerbose(): _alloy_js_core20.Children;
34
+ declare function IsNotVerbose(): _alloy_js_core7.Children;
35
+ /**
36
+ * Write the type declaration for a command parameter based on its configuration.
37
+ */
38
+ declare function CommandParameterType(props: {
39
+ parameter: CommandParameter;
40
+ }): _alloy_js_core7.Children;
33
41
  //#endregion
34
- export { BooleanInputParserLogic, BooleanInputParserLogicProps, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
42
+ export { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
35
43
  //# sourceMappingURL=helpers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;UAoBiB,4BAAA;;;AAAjB;AAOA;AA0BA;AAOgB,iBAjCA,uBAAA,CAiCU,KAAA,EAjCqB,4BAiCrB,CAAA,EAjCiD,gBAAA,CAAA,QAiCjD;AAgB1B;AAaA;;;;;iBApCgB,OAAA,CAAA,GAAO,gBAAA,CAAA;;;;iBAOP,UAAA,CAAA,GAAU,gBAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,gBAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,gBAAA,CAAA"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;UAsBiB,4BAAA;;;;AAAjB;AAOA;AA0BgB,iBA1BA,uBAAA,CA0BO,KAAA,EA1BwB,4BA0BxB,CAAA,EA1BoD,eAAA,CAAA,QA0BpD;AAOvB;AAgBA;AAaA;AAaA;;;iBAjDgB,OAAA,CAAA,GAAO,eAAA,CAAA;;;;iBAOP,UAAA,CAAA,GAAU,eAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,eAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,eAAA,CAAA;;;;iBAaZ,oBAAA;aAAyC;IAAgB,eAAA,CAAE"}
@@ -1,3 +1,4 @@
1
+ import { CommandParameterKinds } from "../types/command.mjs";
1
2
  import { createComponent } from "@alloy-js/core/jsx-runtime";
2
3
  import { code } from "@alloy-js/core";
3
4
 
@@ -51,7 +52,14 @@ function IsNotVerbose() {
51
52
  code`)`
52
53
  ];
53
54
  }
55
+ /**
56
+ * Write the type declaration for a command parameter based on its configuration.
57
+ */
58
+ function CommandParameterType(props) {
59
+ const { parameter } = props;
60
+ return code`${(parameter.kind === CommandParameterKinds.string || parameter.kind === CommandParameterKinds.number) && parameter.choices && parameter.choices.length > 0 ? parameter.choices.map((choice) => typeof choice === "string" ? `"${choice}"` : choice).join(" | ") : parameter.kind === CommandParameterKinds.boolean ? "boolean" : parameter.kind === CommandParameterKinds.number ? "number" : "string"}${(parameter.kind === CommandParameterKinds.string || parameter.kind === CommandParameterKinds.number) && parameter.variadic ? "[]" : ""}${parameter.optional ? " | undefined" : ""}`;
61
+ }
54
62
 
55
63
  //#endregion
56
- export { BooleanInputParserLogic, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
64
+ export { BooleanInputParserLogic, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
57
65
  //# sourceMappingURL=helpers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.mjs","names":["code","BooleanInputParserLogic","props","name","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.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\";\n\nexport interface BooleanInputParserLogicProps {\n name: string;\n}\n\n/**\n * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.\n */\nexport function BooleanInputParserLogic(props: BooleanInputParserLogicProps) {\n const { name } = props;\n\n return (\n <>{code` !!${name} && ${name}.toLowerCase() !== \"false\" && ${\n name\n }.toLowerCase() !== \"f\" && ${name}.toLowerCase() !== \"no\" && ${\n name\n } !== \"n\" && ${name}.toLowerCase() !== \"0\" && ${\n name\n }.toLowerCase() !== \"off\" && ${\n name\n } !== \"disable\" && ${name}.toLowerCase() !== \"disabled\" && ${\n name\n }.toLowerCase() !== \"never\" && (Number.isNaN(Number.parseFloat(${\n name\n })) || Number.parseFloat(${name}) > 0) `}</>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;AA2BA,SAAgBC,wBAAwBC,OAAqC;CAC3E,MAAM,EAAEC,SAASD;AAEjB,QAAA,CACKF,IAAI,MAAMG,KAAI,MAAOA,KAAI,gCAC1BA,KAAI,4BACuBA,KAAI,6BAC/BA,KAAI,cACSA,KAAI,4BACjBA,KAAI,8BAEJA,KAAI,oBACeA,KAAI,mCACvBA,KAAI,gEAEJA,KAAI,0BACqBA,KAAI,SAAS;;;;;;;;AAU5C,SAAgBC,UAAU;AACxB,QAAOJ,IAAI;;;;;AAMb,SAAgBK,aAAa;AAC3B,QAAA;EAEKL,IAAI;EAAIM,gBACRF,SAAO,EAAA,CAAA;EACPJ,IAAI;EAAG;;;;;;;;AAWd,SAAgBO,YAAY;AAC1B,QAAA;EAEKP,IAAI;EAAIM,gBACRF,SAAO,EAAA,CAAA;EACPJ,IAAI;EAA4D;;;;;AAQvE,SAAgBQ,eAAe;AAC7B,QAAA;EAEKR,IAAI;EAAIM,gBACRC,WAAS,EAAA,CAAA;EACTP,IAAI;EAAG"}
1
+ {"version":3,"file":"helpers.mjs","names":["code","CommandParameterKinds","BooleanInputParserLogic","props","name","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose","CommandParameterType","parameter","kind","string","number","choices","length","map","choice","join","boolean","variadic","optional"],"sources":["../../src/components/helpers.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 type { CommandParameter } from \"../types\";\nimport { CommandParameterKinds } from \"../types\";\n\nexport interface BooleanInputParserLogicProps {\n name: string;\n}\n\n/**\n * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.\n */\nexport function BooleanInputParserLogic(props: BooleanInputParserLogicProps) {\n const { name } = props;\n\n return (\n <>{code` !!${name} && ${name}.toLowerCase() !== \"false\" && ${\n name\n }.toLowerCase() !== \"f\" && ${name}.toLowerCase() !== \"no\" && ${\n name\n } !== \"n\" && ${name}.toLowerCase() !== \"0\" && ${\n name\n }.toLowerCase() !== \"off\" && ${\n name\n } !== \"disable\" && ${name}.toLowerCase() !== \"disabled\" && ${\n name\n }.toLowerCase() !== \"never\" && (Number.isNaN(Number.parseFloat(${\n name\n })) || Number.parseFloat(${name}) > 0) `}</>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the type declaration for a command parameter based on its configuration.\n */\nexport function CommandParameterType(props: { parameter: CommandParameter }) {\n const { parameter } = props;\n\n return code`${\n (parameter.kind === CommandParameterKinds.string ||\n parameter.kind === CommandParameterKinds.number) &&\n parameter.choices &&\n parameter.choices.length > 0\n ? parameter.choices\n .map(choice => (typeof choice === \"string\" ? `\"${choice}\"` : choice))\n .join(\" | \")\n : parameter.kind === CommandParameterKinds.boolean\n ? \"boolean\"\n : parameter.kind === CommandParameterKinds.number\n ? \"number\"\n : \"string\"\n }${\n (parameter.kind === CommandParameterKinds.string ||\n parameter.kind === CommandParameterKinds.number) &&\n parameter.variadic\n ? \"[]\"\n : \"\"\n }${parameter.optional ? \" | undefined\" : \"\"}`;\n}\n"],"mappings":";;;;;;;;AA6BA,SAAgBE,wBAAwBC,OAAqC;CAC3E,MAAM,EAAEC,SAASD;AAEjB,QAAA,CACKH,IAAI,MAAMI,KAAI,MAAOA,KAAI,gCAC1BA,KAAI,4BACuBA,KAAI,6BAC/BA,KAAI,cACSA,KAAI,4BACjBA,KAAI,8BAEJA,KAAI,oBACeA,KAAI,mCACvBA,KAAI,gEAEJA,KAAI,0BACqBA,KAAI,SAAS;;;;;;;;AAU5C,SAAgBC,UAAU;AACxB,QAAOL,IAAI;;;;;AAMb,SAAgBM,aAAa;AAC3B,QAAA;EAEKN,IAAI;EAAIO,gBACRF,SAAO,EAAA,CAAA;EACPL,IAAI;EAAG;;;;;;;;AAWd,SAAgBQ,YAAY;AAC1B,QAAA;EAEKR,IAAI;EAAIO,gBACRF,SAAO,EAAA,CAAA;EACPL,IAAI;EAA4D;;;;;AAQvE,SAAgBS,eAAe;AAC7B,QAAA;EAEKT,IAAI;EAAIO,gBACRC,WAAS,EAAA,CAAA;EACTR,IAAI;EAAG;;;;;AAQd,SAAgBU,qBAAqBP,OAAwC;CAC3E,MAAM,EAAEQ,cAAcR;AAEtB,QAAOH,IAAI,IACRW,UAAUC,SAASX,sBAAsBY,UACxCF,UAAUC,SAASX,sBAAsBa,WAC3CH,UAAUI,WACVJ,UAAUI,QAAQC,SAAS,IACvBL,UAAUI,QACPE,KAAIC,WAAW,OAAOA,WAAW,WAAW,IAAIA,OAAM,KAAMA,OAAQ,CACpEC,KAAK,MAAM,GACdR,UAAUC,SAASX,sBAAsBmB,UACvC,YACAT,UAAUC,SAASX,sBAAsBa,SACvC,WACA,YAEPH,UAAUC,SAASX,sBAAsBY,UACxCF,UAAUC,SAASX,sBAAsBa,WAC3CH,UAAUU,WACN,OACA,KACHV,UAAUW,WAAW,iBAAiB"}
@@ -12,6 +12,7 @@ exports.CommandDocs = require_components_docs.CommandDocs;
12
12
  exports.CommandDocsFile = require_components_docs.CommandDocsFile;
13
13
  exports.CommandDocsUsageExample = require_components_docs.CommandDocsUsageExample;
14
14
  exports.CommandOptionsDocs = require_components_docs.CommandOptionsDocs;
15
+ exports.CommandParameterType = require_components_helpers.CommandParameterType;
15
16
  exports.CommandParserLogic = require_components_options_parser_logic.CommandParserLogic;
16
17
  exports.ContextUtilities = require_components_utils_builtin.ContextUtilities;
17
18
  exports.DynamicSegmentsParserLogic = require_components_options_parser_logic.DynamicSegmentsParserLogic;
@@ -1,6 +1,6 @@
1
1
  import { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps } from "./docs.cjs";
2
- import { BooleanInputParserLogic, BooleanInputParserLogicProps, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.cjs";
2
+ import { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.cjs";
3
3
  import { ArgumentsParserLogic, ArgumentsParserLogicProps, CommandParserLogic, CommandParserLogicProps, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps } from "./options-parser-logic.cjs";
4
4
  import { Usage, UsageProps } from "./usage.cjs";
5
5
  import { ArgsUtilities, ColorSupportUtilities, ContextUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, SpawnFunctionDeclaration, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.cjs";
6
- export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParserLogic, CommandParserLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, SpawnFunctionDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
6
+ export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParameterType, CommandParserLogic, CommandParserLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, SpawnFunctionDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
@@ -1,6 +1,6 @@
1
1
  import { CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps } from "./docs.mjs";
2
- import { BooleanInputParserLogic, BooleanInputParserLogicProps, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.mjs";
2
+ import { BooleanInputParserLogic, BooleanInputParserLogicProps, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.mjs";
3
3
  import { ArgumentsParserLogic, ArgumentsParserLogicProps, CommandParserLogic, CommandParserLogicProps, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps } from "./options-parser-logic.mjs";
4
4
  import { Usage, UsageProps } from "./usage.mjs";
5
5
  import { ArgsUtilities, ColorSupportUtilities, ContextUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, SpawnFunctionDeclaration, UtilsBuiltin, UtilsBuiltinProps } from "./utils-builtin.mjs";
6
- export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParserLogic, CommandParserLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, SpawnFunctionDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
6
+ export { ArgsUtilities, ArgumentsParserLogic, ArgumentsParserLogicProps, BooleanInputParserLogic, BooleanInputParserLogicProps, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsFileProps, CommandDocsProps, CommandDocsUsageExample, CommandDocsUsageExampleProps, CommandOptionsDocs, CommandOptionsDocsProps, CommandParameterType, CommandParserLogic, CommandParserLogicProps, ContextUtilities, DynamicSegmentsParserLogic, DynamicSegmentsParserLogicProps, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserConditionProps, OptionsMemberParserLogic, OptionsMemberParserLogicProps, OptionsParserLogic, OptionsParserLogicProps, SpawnFunctionDeclaration, Usage, UsageProps, UtilsBuiltin, UtilsBuiltinProps };
@@ -1,7 +1,7 @@
1
1
  import { Usage } from "./usage.mjs";
2
2
  import { CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs } from "./docs.mjs";
3
3
  import { ArgsUtilities, ColorSupportUtilities, ContextUtilities, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, SpawnFunctionDeclaration, UtilsBuiltin } from "./utils-builtin.mjs";
4
- import { BooleanInputParserLogic, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.mjs";
4
+ import { BooleanInputParserLogic, CommandParameterType, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose } from "./helpers.mjs";
5
5
  import { ArgumentsParserLogic, CommandParserLogic, DynamicSegmentsParserLogic, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic } from "./options-parser-logic.mjs";
6
6
 
7
- export { ArgsUtilities, ArgumentsParserLogic, BooleanInputParserLogic, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, CommandParserLogic, ContextUtilities, DynamicSegmentsParserLogic, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic, SpawnFunctionDeclaration, Usage, UtilsBuiltin };
7
+ export { ArgsUtilities, ArgumentsParserLogic, BooleanInputParserLogic, ColorSupportUtilities, CommandDocs, CommandDocsFile, CommandDocsUsageExample, CommandOptionsDocs, CommandParameterType, CommandParserLogic, ContextUtilities, DynamicSegmentsParserLogic, EnvSupportUtilities, FindSuggestionsDeclaration, HyperlinkSupportUtilities, IsDebug, IsNotDebug, IsNotVerbose, IsVerbose, OptionsInterfaceDeclaration, OptionsMember, OptionsMemberParserCondition, OptionsMemberParserLogic, OptionsParserLogic, SpawnFunctionDeclaration, Usage, UtilsBuiltin };