@sorrell/cli-utilities 1.0.29 → 1.0.30

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 (101) hide show
  1. package/Distribution/English/English.Types.d.ts +18 -0
  2. package/Distribution/English/English.Types.d.ts.map +1 -0
  3. package/Distribution/English/English.Types.js +7 -0
  4. package/Distribution/English/English.Types.js.map +1 -0
  5. package/Distribution/English/English.d.ts +2 -0
  6. package/Distribution/English/English.d.ts.map +1 -0
  7. package/Distribution/English/English.js +7 -0
  8. package/Distribution/English/English.js.map +1 -0
  9. package/Distribution/English/index.d.ts +3 -0
  10. package/Distribution/English/index.d.ts.map +1 -0
  11. package/Distribution/English/index.js +8 -0
  12. package/Distribution/English/index.js.map +1 -0
  13. package/Distribution/English.Types.d.ts +2 -0
  14. package/Distribution/English.Types.d.ts.map +1 -0
  15. package/Distribution/English.Types.js +8 -0
  16. package/Distribution/English.Types.js.map +1 -0
  17. package/Distribution/English.d.ts +2 -0
  18. package/Distribution/English.d.ts.map +1 -0
  19. package/Distribution/English.js +2 -0
  20. package/Distribution/English.js.map +1 -0
  21. package/Distribution/Format/Format.Internal.Types.d.ts +4 -0
  22. package/Distribution/Format/Format.Internal.Types.d.ts.map +1 -0
  23. package/Distribution/Format/Format.Internal.Types.js +7 -0
  24. package/Distribution/Format/Format.Internal.Types.js.map +1 -0
  25. package/Distribution/Format/Format.Internal.d.ts +14 -0
  26. package/Distribution/Format/Format.Internal.d.ts.map +1 -0
  27. package/Distribution/Format/Format.Internal.js +78 -0
  28. package/Distribution/Format/Format.Internal.js.map +1 -0
  29. package/Distribution/Format/Format.Types.d.ts +13 -0
  30. package/Distribution/Format/Format.Types.d.ts.map +1 -0
  31. package/Distribution/Format/Format.Types.js +7 -0
  32. package/Distribution/Format/Format.Types.js.map +1 -0
  33. package/Distribution/Format/Format.d.ts +42 -0
  34. package/Distribution/Format/Format.d.ts.map +1 -0
  35. package/Distribution/Format/Format.js +95 -0
  36. package/Distribution/Format/Format.js.map +1 -0
  37. package/Distribution/Format/index.d.ts +3 -0
  38. package/Distribution/Format/index.d.ts.map +1 -0
  39. package/Distribution/Format/index.js +8 -0
  40. package/Distribution/Format/index.js.map +1 -0
  41. package/Distribution/Inquirer/Confirm.Types.d.ts +9 -0
  42. package/Distribution/Inquirer/Confirm.Types.d.ts.map +1 -0
  43. package/Distribution/Inquirer/Confirm.Types.js +7 -0
  44. package/Distribution/Inquirer/Confirm.Types.js.map +1 -0
  45. package/Distribution/Inquirer/Confirm.d.ts +11 -0
  46. package/Distribution/Inquirer/Confirm.d.ts.map +1 -0
  47. package/Distribution/Inquirer/Confirm.js +64 -0
  48. package/Distribution/Inquirer/Confirm.js.map +1 -0
  49. package/Distribution/Inquirer/FileSelector.Types.d.ts +9 -0
  50. package/Distribution/Inquirer/FileSelector.Types.d.ts.map +1 -0
  51. package/Distribution/Inquirer/FileSelector.Types.js +7 -0
  52. package/Distribution/Inquirer/FileSelector.Types.js.map +1 -0
  53. package/Distribution/Inquirer/FileSelector.d.ts +15 -0
  54. package/Distribution/Inquirer/FileSelector.d.ts.map +1 -0
  55. package/Distribution/Inquirer/FileSelector.js +57 -0
  56. package/Distribution/Inquirer/FileSelector.js.map +1 -0
  57. package/Distribution/Inquirer/index.d.ts +5 -0
  58. package/Distribution/Inquirer/index.d.ts.map +1 -0
  59. package/Distribution/Inquirer/index.js +10 -0
  60. package/Distribution/Inquirer/index.js.map +1 -0
  61. package/Distribution/Listr/Listr.Types.d.ts +42 -0
  62. package/Distribution/Listr/Listr.Types.d.ts.map +1 -0
  63. package/Distribution/Listr/Listr.Types.js +7 -0
  64. package/Distribution/Listr/Listr.Types.js.map +1 -0
  65. package/Distribution/Listr/Listr.d.ts +31 -0
  66. package/Distribution/Listr/Listr.d.ts.map +1 -0
  67. package/Distribution/Listr/Listr.js +148 -0
  68. package/Distribution/Listr/Listr.js.map +1 -0
  69. package/Distribution/Listr/index.d.ts +3 -0
  70. package/Distribution/Listr/index.d.ts.map +1 -0
  71. package/Distribution/Listr/index.js +8 -0
  72. package/Distribution/Listr/index.js.map +1 -0
  73. package/Distribution/Ora/Ora.Types.d.ts +10 -0
  74. package/Distribution/Ora/Ora.Types.d.ts.map +1 -0
  75. package/Distribution/Ora/Ora.Types.js +7 -0
  76. package/Distribution/Ora/Ora.Types.js.map +1 -0
  77. package/Distribution/Ora/Ora.d.ts +27 -0
  78. package/Distribution/Ora/Ora.d.ts.map +1 -0
  79. package/Distribution/Ora/Ora.js +75 -0
  80. package/Distribution/Ora/Ora.js.map +1 -0
  81. package/Distribution/Ora/index.d.ts +3 -0
  82. package/Distribution/Ora/index.d.ts.map +1 -0
  83. package/Distribution/Ora/index.js +8 -0
  84. package/Distribution/Ora/index.js.map +1 -0
  85. package/Distribution/PseudoTerminal/PseudoTerminal.Types.d.ts +2 -0
  86. package/Distribution/PseudoTerminal/PseudoTerminal.Types.d.ts.map +1 -0
  87. package/Distribution/PseudoTerminal/PseudoTerminal.Types.js +7 -0
  88. package/Distribution/PseudoTerminal/PseudoTerminal.Types.js.map +1 -0
  89. package/Distribution/PseudoTerminal/PseudoTerminal.d.ts +2 -0
  90. package/Distribution/PseudoTerminal/PseudoTerminal.d.ts.map +1 -0
  91. package/Distribution/PseudoTerminal/PseudoTerminal.js +10 -0
  92. package/Distribution/PseudoTerminal/PseudoTerminal.js.map +1 -0
  93. package/Distribution/PseudoTerminal/index.d.ts +3 -0
  94. package/Distribution/PseudoTerminal/index.d.ts.map +1 -0
  95. package/Distribution/PseudoTerminal/index.js +8 -0
  96. package/Distribution/PseudoTerminal/index.js.map +1 -0
  97. package/Distribution/index.d.ts +5 -9
  98. package/Distribution/index.d.ts.map +1 -1
  99. package/Distribution/index.js +5 -9
  100. package/Distribution/index.js.map +1 -1
  101. package/package.json +35 -3
@@ -0,0 +1,18 @@
1
+ import type { Inflectors } from "en-inflectors";
2
+ import type { TValues } from "@sorrell/utilities/misc";
3
+ type InflectorFunctions = {
4
+ [Key in keyof Inflectors as Inflectors[Key] extends Function ? Key : never]: Key;
5
+ };
6
+ type InflectorFunctionsWithArgument = {
7
+ [Key in keyof Inflectors as Inflectors[Key] extends (Argument: string) => string ? Key : never]: Key;
8
+ };
9
+ type InflectorFunctionsNoArgument = {
10
+ [Key in keyof Inflectors as Inflectors[Key] extends () => string ? Key : never]: Key;
11
+ };
12
+ export type InflectorFunction = TValues<InflectorFunctions>;
13
+ export declare namespace InflectorFunction {
14
+ type WithArgument = TValues<InflectorFunctionsWithArgument>;
15
+ type NoArgument = TValues<InflectorFunctionsNoArgument>;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=English.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.Types.d.ts","sourceRoot":"","sources":["../../Source/English/English.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,KAAK,kBAAkB,GACnB;KACM,GAAG,IAAI,MAAM,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,QAAQ,GAAG,GAAG,GAAG,KAAK,GAC3E,GAAG;CACN,CAAC;AAEN,KAAK,8BAA8B,GAC/B;KACM,GAAG,IAAI,MAAM,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,GAAG,GAAG,KAAK,GAC/F,GAAG;CACN,CAAC;AAEN,KAAK,4BAA4B,GAC7B;KACM,GAAG,IAAI,MAAM,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,MAAM,MAAM,GAAG,GAAG,GAAG,KAAK,GAC/E,GAAG;CACN,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAE5D,yBAAiB,iBAAiB,CAClC;IACI,KAAY,YAAY,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACnE,KAAY,UAAU,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAClE"}
@@ -0,0 +1,7 @@
1
+ /* File: English.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=English.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.Types.js","sourceRoot":"","sources":["../../Source/English/English.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,2 @@
1
+ export declare const DummyEnglesh: "Foo";
2
+ //# sourceMappingURL=English.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.d.ts","sourceRoot":"","sources":["../../Source/English/English.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,EAAE,KAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: English.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export const DummyEnglesh = "Foo";
7
+ //# sourceMappingURL=English.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.js","sourceRoot":"","sources":["../../Source/English/English.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAU,KAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./English.js";
2
+ export * from "./English.Types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Source/English/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /* File: index.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export * from "./English.js";
7
+ export * from "./English.Types.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Source/English/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=English.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.Types.d.ts","sourceRoot":"","sources":["../Source/English.Types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /* File: English.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ // export type InflectorFunction =
8
+ //# sourceMappingURL=English.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.Types.js","sourceRoot":"","sources":["../Source/English.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,kCAAkC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=English.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.d.ts","sourceRoot":"","sources":["../Source/English.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=English.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"English.js","sourceRoot":"","sources":["../Source/English.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { Formatter } from "./Format.Types.js";
2
+ /** The result of parsing a {@link FormatRules} object. */
3
+ export type FormatRulesParsed = Map<string | RegExp, Formatter>;
4
+ //# sourceMappingURL=Format.Internal.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Internal.Types.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.Internal.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: Format.Internal.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=Format.Internal.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Internal.Types.js","sourceRoot":"","sources":["../../Source/Format/Format.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,14 @@
1
+ import type { FormatRules } from "./Format.Types.js";
2
+ import type { FormatRulesParsed } from "./Format.Internal.Types.js";
3
+ /**
4
+ * Parse a given {@link FormatRules} object into a `Map`, such that
5
+ * the keys of the given {@link Rules} that describe regular expressions
6
+ * are replaced by the `RegExp` objects that they describe. Keys that
7
+ * correspond to substrings are left as-is.
8
+ *
9
+ * @param Rules - The given {@link FormatRules} to parse.
10
+ *
11
+ * @returns The parsed {@link FormatRules}, as a {@link FormatRulesParsed} `Map`.
12
+ */
13
+ export declare function ParseFormatRules(Rules: FormatRules): FormatRulesParsed;
14
+ //# sourceMappingURL=Format.Internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Internal.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.Internal.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAkFpE;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,CAatE"}
@@ -0,0 +1,78 @@
1
+ /* File: Format.Internal.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ /**
7
+ * @param Value - The given string to parse.
8
+ * @returns The parsed string or regular expression.
9
+ */
10
+ function ParseStringOrRegularExpression(Value) {
11
+ if (Value.length < 2) {
12
+ return Value;
13
+ }
14
+ if (Value[0] !== "/") {
15
+ return Value;
16
+ }
17
+ const ClosingSlashIndex = GetClosingSlashIndex(Value);
18
+ if (ClosingSlashIndex <= 0) {
19
+ return Value;
20
+ }
21
+ const Pattern = Value.slice(1, ClosingSlashIndex);
22
+ const Flags = Value.slice(ClosingSlashIndex + 1);
23
+ try {
24
+ return new RegExp(Pattern, Flags);
25
+ }
26
+ catch {
27
+ return Value;
28
+ }
29
+ }
30
+ /**
31
+ * @param Value - The given `string` whose index of a closing slash is returned.
32
+ * @returns The index of the closing slash in the given `string`, or `-1` if there is no closing slash.
33
+ */
34
+ function GetClosingSlashIndex(Value) {
35
+ for (let Index = Value.length - 1; Index >= 1; Index--) {
36
+ if (Value[Index] !== "/") {
37
+ continue;
38
+ }
39
+ if (!IsCharacterEscaped(Value, Index)) {
40
+ return Index;
41
+ }
42
+ }
43
+ return -1;
44
+ }
45
+ /**
46
+ * @param Value - The given `string` in which to check whether the character at the given `index` is escaped.
47
+ * @param Index - The index of the character to check.
48
+ * @returns Whether the given {@link Value} is escaped at the given {@link Index}.
49
+ */
50
+ function IsCharacterEscaped(Value, Index) {
51
+ let BackslashCount = 0;
52
+ for (let CurrentIndex = Index - 1; CurrentIndex >= 0; CurrentIndex--) {
53
+ if (Value[CurrentIndex] !== "\\") {
54
+ break;
55
+ }
56
+ BackslashCount++;
57
+ }
58
+ return (BackslashCount % 2) === 1;
59
+ }
60
+ /**
61
+ * Parse a given {@link FormatRules} object into a `Map`, such that
62
+ * the keys of the given {@link Rules} that describe regular expressions
63
+ * are replaced by the `RegExp` objects that they describe. Keys that
64
+ * correspond to substrings are left as-is.
65
+ *
66
+ * @param Rules - The given {@link FormatRules} to parse.
67
+ *
68
+ * @returns The parsed {@link FormatRules}, as a {@link FormatRulesParsed} `Map`.
69
+ */
70
+ export function ParseFormatRules(Rules) {
71
+ const Out = new Map();
72
+ Object.entries(Rules).forEach(([Key, Formatter]) => {
73
+ const ParsedKey = ParseStringOrRegularExpression(Key);
74
+ Out.set(ParsedKey, Formatter);
75
+ });
76
+ return Out;
77
+ }
78
+ //# sourceMappingURL=Format.Internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Internal.js","sourceRoot":"","sources":["../../Source/Format/Format.Internal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH;;;GAGG;AACH,SAAS,8BAA8B,CAAC,KAAa;IAEjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EACpB,CAAC;QACG,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EACpB,CAAC;QACG,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,iBAAiB,GAAW,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE9D,IAAI,iBAAiB,IAAI,CAAC,EAC1B,CAAC;QACG,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAW,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAW,KAAK,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC;IAEzD,IACA,CAAC;QACG,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IACD,MACA,CAAC;QACG,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAS,oBAAoB,CAAC,KAAa;IAEvC,KAAK,IAAI,KAAK,GAAW,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAC9D,CAAC;QACG,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,EACxB,CAAC;YACG,SAAS;QACb,CAAC;QAED,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,EACrC,CAAC;YACG,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,SAAS,kBAAkB,CAAC,KAAa,EAAE,KAAa;IAEpD,IAAI,cAAc,GAAW,CAAC,CAAC;IAE/B,KAAK,IAAI,YAAY,GAAW,KAAK,GAAG,CAAC,EAAE,YAAY,IAAI,CAAC,EAAE,YAAY,EAAE,EAC5E,CAAC;QACG,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,IAAI,EAChC,CAAC;YACG,MAAM;QACV,CAAC;QAED,cAAc,EAAE,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAkB;IAE/C,MAAM,GAAG,GAAoC,IAAI,GAAG,EAA8B,CAAC;IAInF,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,GAAG,EAAE,SAAS,CAAS,EAAQ,EAAE;QAE9D,MAAM,SAAS,GAAoB,8BAA8B,CAAC,GAAG,CAAC,CAAC;QACvE,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A function that formats a given {@link Message | Message string}.
3
+ *
4
+ * @param Message - The given message to format.
5
+ *
6
+ * @returns The formatted message.
7
+ */
8
+ export type Formatter = {
9
+ (Message: string): string;
10
+ };
11
+ /** A mapping of substrings or regular expressions to {@link Formatter | Formatters}. */
12
+ export type FormatRules = Record<string, Formatter>;
13
+ //# sourceMappingURL=Format.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Types.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.Types.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GACjB;IACI,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEN,wFAAwF;AACxF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: Format.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=Format.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.Types.js","sourceRoot":"","sources":["../../Source/Format/Format.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,42 @@
1
+ import type { FormatRules, Formatter } from "./Format.Types.js";
2
+ /**
3
+ * Formats a given {@link Message} as code.
4
+ *
5
+ * @param Message - The given message to format.
6
+ *
7
+ * @returns The given {@link Message}, formatted to convey that it is code.
8
+ */
9
+ export declare function Code(Message: string): string;
10
+ /**
11
+ * Formats a given {@link Path} as a path.
12
+ *
13
+ * @note Currently, this is just an alias for {@link Code}.
14
+ *
15
+ * @param Path - The path to format.
16
+ *
17
+ * @returns The given {@link Path}, formatted to convey that it is a path.
18
+ */
19
+ export declare function Path(Path: string): string;
20
+ /**
21
+ * Format a given {@link Message} according to the given {@link Rules}.
22
+ *
23
+ * @param Message - The message to format.
24
+ * @param Rules - The {@link FormatRules} describing the transformations that should be made.
25
+ *
26
+ * @returns The formatted {@link Message}, such that every matched substring in {@link Rules}
27
+ * is formatted by the corresponding {@link Formatter}.
28
+ */
29
+ export declare function Format(Message: string, Rules: FormatRules): string;
30
+ /**
31
+ * Creates a function that formats a given `string` with the given {@link Rules}.
32
+ *
33
+ * @param Rules - The {@link FormatRules} used to format messages passed to the
34
+ * returned function. If multiple are given, then the keys will be pooled. If
35
+ * multiple {@link Rules} share a given key, then the respective formatter functions
36
+ * will be composed in the order of the given {@link Rules} objects.
37
+ *
38
+ * @returns A function that will format the `Message` passed to it according to the
39
+ * {@link Rules} passed to this function.
40
+ */
41
+ export declare function MakeFormatter(...Rules: [FormatRules] | Array<FormatRules>): Formatter;
42
+ //# sourceMappingURL=Format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAiBhE;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAClB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,GACnB,MAAM,CAYR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,GAAG,KAAK,EAAE,CAAE,WAAW,CAAE,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAsCvF"}
@@ -0,0 +1,95 @@
1
+ /* File: Format.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ * Comment: This module contains functions to output messages
6
+ * to the user with consistent and aesthetic formatting.
7
+ */
8
+ import Chalk from "chalk";
9
+ import { ParseFormatRules } from "./Format.Internal.js";
10
+ /**
11
+ * The base function for all functions exported by this module.
12
+ *
13
+ * @param Message - The input of the function in which this is called.
14
+ *
15
+ * @returns The given {@link Message} with base formatting applied.
16
+ */
17
+ function FormatBase(Message) {
18
+ return Chalk.reset(Message);
19
+ }
20
+ /**
21
+ * Formats a given {@link Message} as code.
22
+ *
23
+ * @param Message - The given message to format.
24
+ *
25
+ * @returns The given {@link Message}, formatted to convey that it is code.
26
+ */
27
+ export function Code(Message) {
28
+ return FormatBase(Chalk.red(Message));
29
+ }
30
+ /**
31
+ * Formats a given {@link Path} as a path.
32
+ *
33
+ * @note Currently, this is just an alias for {@link Code}.
34
+ *
35
+ * @param Path - The path to format.
36
+ *
37
+ * @returns The given {@link Path}, formatted to convey that it is a path.
38
+ */
39
+ export function Path(Path) {
40
+ return Code(Chalk.red(Path));
41
+ }
42
+ /**
43
+ * Format a given {@link Message} according to the given {@link Rules}.
44
+ *
45
+ * @param Message - The message to format.
46
+ * @param Rules - The {@link FormatRules} describing the transformations that should be made.
47
+ *
48
+ * @returns The formatted {@link Message}, such that every matched substring in {@link Rules}
49
+ * is formatted by the corresponding {@link Formatter}.
50
+ */
51
+ export function Format(Message, Rules) {
52
+ Message = FormatBase(Message);
53
+ const RulesParsed = ParseFormatRules(Rules);
54
+ for (const [Match, Formatter] of RulesParsed) {
55
+ Message = Message.replaceAll(Match, Formatter);
56
+ }
57
+ return Message;
58
+ }
59
+ /**
60
+ * Creates a function that formats a given `string` with the given {@link Rules}.
61
+ *
62
+ * @param Rules - The {@link FormatRules} used to format messages passed to the
63
+ * returned function. If multiple are given, then the keys will be pooled. If
64
+ * multiple {@link Rules} share a given key, then the respective formatter functions
65
+ * will be composed in the order of the given {@link Rules} objects.
66
+ *
67
+ * @returns A function that will format the `Message` passed to it according to the
68
+ * {@link Rules} passed to this function.
69
+ */
70
+ export function MakeFormatter(...Rules) {
71
+ /* eslint-disable-next-line jsdoc/require-jsdoc */
72
+ function ComposeRules() {
73
+ if (Rules.length === 1) {
74
+ return Rules[0];
75
+ }
76
+ return Rules.reduce((PreviousValue, CurrentValue) => {
77
+ const NewValue = { ...PreviousValue };
78
+ Object.keys(CurrentValue).forEach((Key) => {
79
+ if (Key in NewValue && PreviousValue[Key] !== undefined && CurrentValue[Key] !== undefined) {
80
+ const OriginalFunction = PreviousValue[Key];
81
+ const CurrentFunction = CurrentValue[Key];
82
+ NewValue[Key] = function (Message) {
83
+ return CurrentFunction(OriginalFunction(Message));
84
+ };
85
+ }
86
+ });
87
+ return NewValue;
88
+ }, {});
89
+ }
90
+ const OutRules = ComposeRules();
91
+ return function (Message) {
92
+ return Format(Message, OutRules);
93
+ };
94
+ }
95
+ //# sourceMappingURL=Format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.js","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,OAAe;IAE/B,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,OAAe;IAEhC,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,IAAI,CAAC,IAAY;IAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAClB,OAAe,EACf,KAAkB;IAGlB,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAE9B,MAAM,WAAW,GAAsB,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE/D,KAAK,MAAM,CAAE,KAAK,EAAE,SAAS,CAAE,IAAI,WAAW,EAC9C,CAAC;QACG,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,aAAa,CAAC,GAAG,KAA2C;IAExE,kDAAkD;IAClD,SAAS,YAAY;QAEjB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EACtB,CAAC;YACG,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QAED,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,aAA0B,EAAE,YAAyB,EAAe,EAAE;YAEvF,MAAM,QAAQ,GAAgB,EAAE,GAAG,aAAa,EAAE,CAAC;YAEnD,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,GAAW,EAAQ,EAAE;gBAEpD,IAAI,GAAG,IAAI,QAAQ,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,SAAS,EAC1F,CAAC;oBACG,MAAM,gBAAgB,GAAc,aAAa,CAAC,GAAG,CAAC,CAAC;oBACvD,MAAM,eAAe,GAAc,YAAY,CAAC,GAAG,CAAC,CAAC;oBAErD,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAS,OAAe;wBAEpC,OAAO,eAAe,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;oBACtD,CAAC,CAAC;gBACN,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACpB,CAAC,EAAE,EAAG,CAAC,CAAC;IACZ,CAAC;IAED,MAAM,QAAQ,GAAgB,YAAY,EAAE,CAAC;IAE7C,OAAO,UAAS,OAAe;QAE3B,OAAO,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./Format.js";
2
+ export * from "./Format.Types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Source/Format/index.ts"],"names":[],"mappings":"AAMA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /* File: index.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export * from "./Format.js";
7
+ export * from "./Format.Types.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Source/Format/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { PartialDeep } from "@inquirer/type";
2
+ import type { Theme } from "@inquirer/core";
3
+ /** The configuration object for {@link Confirm}. */
4
+ export type FConfirmConfig = {
5
+ message: string;
6
+ default?: boolean;
7
+ theme?: PartialDeep<Theme>;
8
+ };
9
+ //# sourceMappingURL=Confirm.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confirm.Types.d.ts","sourceRoot":"","sources":["../../Source/Inquirer/Confirm.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,oDAAoD;AACpD,MAAM,MAAM,cAAc,GACtB;IACI,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: Confirm.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=Confirm.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confirm.Types.js","sourceRoot":"","sources":["../../Source/Inquirer/Confirm.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,11 @@
1
+ import type { FConfirmConfig } from "./Confirm.Types.js";
2
+ import type { Prompt } from "@inquirer/type";
3
+ /**
4
+ * An `inquirer` prompt identical to `confirm`, but with more natural handling of keypresses.
5
+ *
6
+ * @param config - The configuration for this prompt.
7
+ *
8
+ * @returns The `boolean` corresponding to the user's choice.
9
+ */
10
+ export declare const Confirm: Prompt<boolean, FConfirmConfig>;
11
+ //# sourceMappingURL=Confirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confirm.d.ts","sourceRoot":"","sources":["../../Source/Inquirer/Confirm.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAa7C;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CAwDnD,CAAC"}
@@ -0,0 +1,64 @@
1
+ /* File: Confirm.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ import { createPrompt, isEnterKey, makeTheme, useKeypress, usePrefix, useState } from "@inquirer/core";
7
+ /**
8
+ * @param Value - The answer.
9
+ * @returns The string to display for the given answer.
10
+ */
11
+ function GetAnswerString(Value) {
12
+ return Value ? "Yes" : "No";
13
+ }
14
+ /* eslint-disable jsdoc/require-jsdoc */
15
+ /**
16
+ * An `inquirer` prompt identical to `confirm`, but with more natural handling of keypresses.
17
+ *
18
+ * @param config - The configuration for this prompt.
19
+ *
20
+ * @returns The `boolean` corresponding to the user's choice.
21
+ */
22
+ export const Confirm = createPrompt((Configuration, Done) => {
23
+ const [status, SetStatus] = useState("idle");
24
+ const [DisplayValue, SetDisplayValue] = useState("");
25
+ const theme = makeTheme(Configuration.theme);
26
+ const Prefix = usePrefix({ status, theme });
27
+ useKeypress((Key) => {
28
+ if (status !== "idle") {
29
+ return;
30
+ }
31
+ const KeyName = Key.name?.toLowerCase();
32
+ if (KeyName === "y") {
33
+ SetDisplayValue(theme.style.answer("Yes"));
34
+ SetStatus("done");
35
+ Done(true);
36
+ return;
37
+ }
38
+ if (KeyName === "n") {
39
+ SetDisplayValue(theme.style.answer("No"));
40
+ SetStatus("done");
41
+ Done(false);
42
+ return;
43
+ }
44
+ if (isEnterKey(Key)) {
45
+ const Answer = Configuration.default ?? true;
46
+ SetDisplayValue(theme.style.answer(GetAnswerString(Answer)));
47
+ SetStatus("done");
48
+ Done(Answer);
49
+ }
50
+ });
51
+ const DefaultHint = status === "idle"
52
+ ? ` ${theme.style.defaultAnswer(Configuration.default === false ? "y/N" : "Y/n")}`
53
+ : "";
54
+ return [
55
+ Prefix,
56
+ " ",
57
+ theme.style.message(Configuration.message, status),
58
+ DefaultHint,
59
+ " ",
60
+ DisplayValue
61
+ ].join("");
62
+ });
63
+ /* eslint-enable jsdoc/require-jsdoc */
64
+ //# sourceMappingURL=Confirm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confirm.js","sourceRoot":"","sources":["../../Source/Inquirer/Confirm.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIH,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAIrC;;;GAGG;AACH,SAAS,eAAe,CAAC,KAAc;IAEnC,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAChC,CAAC;AAED,wCAAwC;AAExC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAoC,YAAY,CAChE,CAAC,aAA6B,EAAE,IAAgC,EAAE,EAAE;IAEhE,MAAM,CAAE,MAAM,EAAE,SAAS,CAAE,GAAG,QAAQ,CAAS,MAAM,CAAC,CAAC;IACvD,MAAM,CAAE,YAAY,EAAE,eAAe,CAAE,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,KAAK,GAAU,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,MAAM,GAAW,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEpD,WAAW,CAAC,CAAC,GAAkB,EAAE,EAAE;QAE/B,IAAI,MAAM,KAAK,MAAM,EACrB,CAAC;YACG,OAAO;QACX,CAAC;QAED,MAAM,OAAO,GAAW,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC;QAEhD,IAAI,OAAO,KAAK,GAAG,EACnB,CAAC;YACG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3C,SAAS,CAAC,MAAM,CAAC,CAAC;YAClB,IAAI,CAAC,IAAI,CAAC,CAAC;YACX,OAAO;QACX,CAAC;QAED,IAAI,OAAO,KAAK,GAAG,EACnB,CAAC;YACG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAC1C,SAAS,CAAC,MAAM,CAAC,CAAC;YAClB,IAAI,CAAC,KAAK,CAAC,CAAC;YACZ,OAAO;QACX,CAAC;QAED,IAAI,UAAU,CAAC,GAAG,CAAC,EACnB,CAAC;YACG,MAAM,MAAM,GAAY,aAAa,CAAC,OAAO,IAAI,IAAI,CAAC;YACtD,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC7D,SAAS,CAAC,MAAM,CAAC,CAAC;YAClB,IAAI,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,WAAW,GACb,MAAM,KAAK,MAAM;QACb,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;QAClF,CAAC,CAAC,EAAE,CAAC;IAEb,OAAO;QACH,MAAM;QACN,GAAG;QACH,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC;QAClD,WAAW;QACX,GAAG;QACH,YAAY;KACf,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACf,CAAC,CACJ,CAAC;AAEF,uCAAuC"}
@@ -0,0 +1,9 @@
1
+ import type { PromptConfig } from "@sorrell/inquirer-file-selector";
2
+ export type { Item } from "@sorrell/inquirer-file-selector";
3
+ export type FFileSelectorConfigFull = PromptConfig & {
4
+ allowCancel?: false;
5
+ multiple?: false;
6
+ };
7
+ export type FFileSelectorConfigBase = Omit<FFileSelectorConfigFull, "message" | "allowCancel">;
8
+ export type FFileSelectorConfig = Pick<FFileSelectorConfigFull, "filter" | "message" | "type" | "theme"> & Partial<Pick<FFileSelectorConfigFull, "allowCancel" | "basePath">>;
9
+ //# sourceMappingURL=FileSelector.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSelector.Types.d.ts","sourceRoot":"","sources":["../../Source/Inquirer/FileSelector.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,YAAY,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAC/B,YAAY,GACZ;IACI,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;CACpB,CAAC;AAEN,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,EAAG,SAAS,GAAG,aAAa,CAAC,CAAC;AAEhG,MAAM,MAAM,mBAAmB,GAC3B,IAAI,CAAC,uBAAuB,EACtB,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,CACZ,GACD,OAAO,CAAC,IAAI,CACR,uBAAuB,EACrB,aAAa,GACb,UAAU,CACf,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: FileSelector.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=FileSelector.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSelector.Types.js","sourceRoot":"","sources":["../../Source/Inquirer/FileSelector.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,15 @@
1
+ import type { FFileSelectorConfig } from "./FileSelector.Types.js";
2
+ import { type Item } from "@sorrell/inquirer-file-selector";
3
+ /**
4
+ * Create an {@link https://www.npmjs.com/package/@inquirer/prompts | Inquirer} prompt for
5
+ * browsing and selecting a file or directory.
6
+ *
7
+ * This wraps {@link https://www.npmjs.com/package/inquirer-file-selector | inquirer-file-selector}.
8
+ *
9
+ * @deprecated An enquirer-based alternative needs to be found or built.
10
+ *
11
+ * @param Config - The options for the prompt.
12
+ * @returns The `Item` selected by the user via the prompt.
13
+ */
14
+ export declare function FileSelector(Config: FFileSelectorConfig): Promise<Item>;
15
+ //# sourceMappingURL=FileSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileSelector.d.ts","sourceRoot":"","sources":["../../Source/Inquirer/FileSelector.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,mBAAmB,EAEM,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,KAAK,IAAI,EAAkC,MAAM,iCAAiC,CAAC;AAI5F;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsD7E"}