@sorrell/cli-utilities 1.0.47 → 1.0.49
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.
- package/Distribution/Command/Command.Types.d.ts +15 -0
- package/Distribution/Command/Command.Types.d.ts.map +1 -0
- package/Distribution/Command/Command.Types.js +9 -0
- package/Distribution/Command/Command.Types.js.map +1 -0
- package/Distribution/Command/Command.d.ts +15 -0
- package/Distribution/Command/Command.d.ts.map +1 -1
- package/Distribution/Command/Command.js +20 -0
- package/Distribution/Command/Command.js.map +1 -1
- package/Distribution/English/English.Types.d.ts +4 -4
- package/Distribution/English/English.Types.d.ts.map +1 -1
- package/Distribution/Format/Format.d.ts +14 -4
- package/Distribution/Format/Format.d.ts.map +1 -1
- package/Distribution/Format/Format.js +18 -5
- package/Distribution/Format/Format.js.map +1 -1
- package/Distribution/PackageConfig/PackageConfig.Internal.js.map +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Command.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from "@effect/cli";
|
|
8
|
+
import type { Option } from "effect/Option";
|
|
9
|
+
/**
|
|
10
|
+
* The type of the {@link Command.Command | command} returned by {@link GetMainCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export type MainCommand = Command.Command<string, any, any, {
|
|
13
|
+
readonly subcommand: Option<any>;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=Command.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Command.Types.d.ts","sourceRoot":"","sources":["../../Source/Command/Command.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,OAAO,CAAC,OAAO,CACX,MAAM,EACN,GAAG,EACH,GAAG,EACH;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;CAAE,CACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Command.Types.js","sourceRoot":"","sources":["../../Source/Command/Command.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAoBH,sDAAsD"}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* @copyright (c) 2026 Gage Sorrell
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
+
import { Command } from "@effect/cli";
|
|
8
|
+
import type { MainCommand } from "./Command.Types.js";
|
|
9
|
+
import type { NonEmptyArray } from "effect/Array";
|
|
7
10
|
/**
|
|
8
11
|
* For a given command, get the name of that command, such that it will
|
|
9
12
|
* work, even if the command will be run inside of a Windows shell terminal.
|
|
@@ -30,4 +33,16 @@
|
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
32
35
|
export declare function GetCommandName(PlainName: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Get an "empty" command, with your application's commands piped to it as subcommands.
|
|
38
|
+
*
|
|
39
|
+
* @param Name - The name of the main command. This should be the name of the `"bin"` entry
|
|
40
|
+
* in your `package.json`.
|
|
41
|
+
*
|
|
42
|
+
* @param SubCommands - The commands of your application.
|
|
43
|
+
*
|
|
44
|
+
* @returns {Command.Command<typeof Name, never, never, object>} The "empty" command to have
|
|
45
|
+
* your packages commands piped to it (as subcommands).
|
|
46
|
+
*/
|
|
47
|
+
export declare function GetMainCommand(Name: string, SubCommands: NonEmptyArray<Command.Command<any, any, any, any>>): MainCommand;
|
|
33
48
|
//# sourceMappingURL=Command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../Source/Command/Command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKxD"}
|
|
1
|
+
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../Source/Command/Command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKxD;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC1B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAChE,WAAW,CAQb"}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* @copyright (c) 2026 Gage Sorrell
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
+
import { Command } from "@effect/cli";
|
|
8
|
+
import { Effect } from "effect";
|
|
7
9
|
/**
|
|
8
10
|
* For a given command, get the name of that command, such that it will
|
|
9
11
|
* work, even if the command will be run inside of a Windows shell terminal.
|
|
@@ -34,4 +36,22 @@ export function GetCommandName(PlainName) {
|
|
|
34
36
|
? `${PlainName}.cmd`
|
|
35
37
|
: PlainName;
|
|
36
38
|
}
|
|
39
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, jsdoc/require-example */
|
|
40
|
+
/**
|
|
41
|
+
* Get an "empty" command, with your application's commands piped to it as subcommands.
|
|
42
|
+
*
|
|
43
|
+
* @param Name - The name of the main command. This should be the name of the `"bin"` entry
|
|
44
|
+
* in your `package.json`.
|
|
45
|
+
*
|
|
46
|
+
* @param SubCommands - The commands of your application.
|
|
47
|
+
*
|
|
48
|
+
* @returns {Command.Command<typeof Name, never, never, object>} The "empty" command to have
|
|
49
|
+
* your packages commands piped to it (as subcommands).
|
|
50
|
+
*/
|
|
51
|
+
export function GetMainCommand(Name, SubCommands) {
|
|
52
|
+
/* eslint-disable-next-line @typescript-eslint/no-empty-object-type */
|
|
53
|
+
const MainCommand = Command.make(Name, {}, (_) => Effect.succeed(undefined));
|
|
54
|
+
return MainCommand.pipe(Command.withSubcommands(SubCommands));
|
|
55
|
+
}
|
|
56
|
+
/* eslint-enable jsdoc/require-example */
|
|
37
57
|
//# sourceMappingURL=Command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../Source/Command/Command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB;IAE5C,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO;QAC/B,CAAC,CAAC,GAAI,SAAU,MAAM;QACtB,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Command.js","sourceRoot":"","sources":["../../Source/Command/Command.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB;IAE5C,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO;QAC/B,CAAC,CAAC,GAAI,SAAU,MAAM;QACtB,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAED,8EAA8E;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAC1B,IAAY,EACZ,WAA+D;IAG/D,sEAAsE;IACtE,MAAM,WAAW,GACb,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAG,EAAE,CAAC,CAAS,EAAqC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAEzG,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC;AAElE,CAAC;AAED,yCAAyC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
import type { Inflectors } from "en-inflectors";
|
|
8
|
-
import type {
|
|
8
|
+
import type { Values } from "@sorrell/utilities/record";
|
|
9
9
|
type InflectorFunctions = {
|
|
10
10
|
[Key in keyof Inflectors as Inflectors[Key] extends Function ? Key : never]: Key;
|
|
11
11
|
};
|
|
@@ -15,10 +15,10 @@ type InflectorFunctionsWithArgument = {
|
|
|
15
15
|
type InflectorFunctionsNoArgument = {
|
|
16
16
|
[Key in keyof Inflectors as Inflectors[Key] extends () => string ? Key : never]: Key;
|
|
17
17
|
};
|
|
18
|
-
export type InflectorFunction =
|
|
18
|
+
export type InflectorFunction = Values<InflectorFunctions>;
|
|
19
19
|
export declare namespace InflectorFunction {
|
|
20
|
-
type WithArgument =
|
|
21
|
-
type NoArgument =
|
|
20
|
+
type WithArgument = Values<InflectorFunctionsWithArgument>;
|
|
21
|
+
type NoArgument = Values<InflectorFunctionsNoArgument>;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=English.Types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"English.Types.d.ts","sourceRoot":"","sources":["../../Source/English/English.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"English.Types.d.ts","sourceRoot":"","sources":["../../Source/English/English.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,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,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE3D,yBAAiB,iBAAiB,CAClC;IACI,KAAY,YAAY,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAClE,KAAY,UAAU,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;CACjE"}
|
|
@@ -7,12 +7,22 @@
|
|
|
7
7
|
* to the user with consistent and aesthetic formatting.
|
|
8
8
|
*/
|
|
9
9
|
import type { FormatRules, Formatter } from "./Format.Types.js";
|
|
10
|
+
/**
|
|
11
|
+
* Formats a given {@link DisplayText} `string` *and* equips it with the given {@link Url}
|
|
12
|
+
* to create a hyperlink.
|
|
13
|
+
*
|
|
14
|
+
* @param DisplayText - The given text to display for the hyperlink.
|
|
15
|
+
* @param Url - The given URL to which the {@link DisplayText} will link.
|
|
16
|
+
*
|
|
17
|
+
* @returns {string} A hyperlink of the given {@link DisplayText} that directs to the given {@link Url}.
|
|
18
|
+
*/
|
|
19
|
+
export declare function Link(DisplayText: string, Url: string): string;
|
|
10
20
|
/**
|
|
11
21
|
* Formats a given {@link Message} as code.
|
|
12
22
|
*
|
|
13
23
|
* @param Message - The given message to format.
|
|
14
24
|
*
|
|
15
|
-
* @returns The given {@link Message}, formatted to convey that it is code.
|
|
25
|
+
* @returns {string} The given {@link Message}, formatted to convey that it is code.
|
|
16
26
|
*/
|
|
17
27
|
export declare function Code(Message: string): string;
|
|
18
28
|
/**
|
|
@@ -22,7 +32,7 @@ export declare function Code(Message: string): string;
|
|
|
22
32
|
*
|
|
23
33
|
* @param Path - The path to format.
|
|
24
34
|
*
|
|
25
|
-
* @returns The given {@link Path}, formatted to convey that it is a path.
|
|
35
|
+
* @returns {string} The given {@link Path}, formatted to convey that it is a path.
|
|
26
36
|
*/
|
|
27
37
|
export declare function Path(Path: string): string;
|
|
28
38
|
/**
|
|
@@ -31,7 +41,7 @@ export declare function Path(Path: string): string;
|
|
|
31
41
|
* @param Message - The message to format.
|
|
32
42
|
* @param Rules - The {@link FormatRules} describing the transformations that should be made.
|
|
33
43
|
*
|
|
34
|
-
* @returns The formatted {@link Message}, such that every matched substring in {@link Rules}
|
|
44
|
+
* @returns {string} The formatted {@link Message}, such that every matched substring in {@link Rules}
|
|
35
45
|
* is formatted by the corresponding {@link Formatter}.
|
|
36
46
|
*/
|
|
37
47
|
export declare function Format(Message: string, Rules: FormatRules): string;
|
|
@@ -43,7 +53,7 @@ export declare function Format(Message: string, Rules: FormatRules): string;
|
|
|
43
53
|
* multiple {@link Rules} share a given key, then the respective formatter functions
|
|
44
54
|
* will be composed in the order of the given {@link Rules} objects.
|
|
45
55
|
*
|
|
46
|
-
* @returns A function that will format the `Message` passed to it according to the
|
|
56
|
+
* @returns {Formatter} A function that will format the `Message` passed to it according to the
|
|
47
57
|
* {@link Rules} passed to this function.
|
|
48
58
|
*/
|
|
49
59
|
export declare function MakeFormatter(...Rules: [FormatRules] | Array<FormatRules>): Formatter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Format.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"Format.d.ts","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAkBhE;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;;;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"}
|
|
@@ -8,22 +8,35 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import Chalk from "chalk";
|
|
10
10
|
import { ParseFormatRules } from "./Format.Internal.js";
|
|
11
|
+
import TerminalLink from "terminal-link";
|
|
11
12
|
/**
|
|
12
13
|
* The base function for all functions exported by this module.
|
|
13
14
|
*
|
|
14
15
|
* @param Message - The input of the function in which this is called.
|
|
15
16
|
*
|
|
16
|
-
* @returns The given {@link Message} with base formatting applied.
|
|
17
|
+
* @returns {string} The given {@link Message} with base formatting applied.
|
|
17
18
|
*/
|
|
18
19
|
function FormatBase(Message) {
|
|
19
20
|
return Chalk.reset(Message);
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Formats a given {@link DisplayText} `string` *and* equips it with the given {@link Url}
|
|
24
|
+
* to create a hyperlink.
|
|
25
|
+
*
|
|
26
|
+
* @param DisplayText - The given text to display for the hyperlink.
|
|
27
|
+
* @param Url - The given URL to which the {@link DisplayText} will link.
|
|
28
|
+
*
|
|
29
|
+
* @returns {string} A hyperlink of the given {@link DisplayText} that directs to the given {@link Url}.
|
|
30
|
+
*/
|
|
31
|
+
export function Link(DisplayText, Url) {
|
|
32
|
+
return TerminalLink(FormatBase(Chalk.underline(Chalk.cyan(DisplayText))), Url);
|
|
33
|
+
}
|
|
21
34
|
/**
|
|
22
35
|
* Formats a given {@link Message} as code.
|
|
23
36
|
*
|
|
24
37
|
* @param Message - The given message to format.
|
|
25
38
|
*
|
|
26
|
-
* @returns The given {@link Message}, formatted to convey that it is code.
|
|
39
|
+
* @returns {string} The given {@link Message}, formatted to convey that it is code.
|
|
27
40
|
*/
|
|
28
41
|
export function Code(Message) {
|
|
29
42
|
return FormatBase(Chalk.red(Message));
|
|
@@ -35,7 +48,7 @@ export function Code(Message) {
|
|
|
35
48
|
*
|
|
36
49
|
* @param Path - The path to format.
|
|
37
50
|
*
|
|
38
|
-
* @returns The given {@link Path}, formatted to convey that it is a path.
|
|
51
|
+
* @returns {string} The given {@link Path}, formatted to convey that it is a path.
|
|
39
52
|
*/
|
|
40
53
|
export function Path(Path) {
|
|
41
54
|
return Code(Chalk.red(Path));
|
|
@@ -46,7 +59,7 @@ export function Path(Path) {
|
|
|
46
59
|
* @param Message - The message to format.
|
|
47
60
|
* @param Rules - The {@link FormatRules} describing the transformations that should be made.
|
|
48
61
|
*
|
|
49
|
-
* @returns The formatted {@link Message}, such that every matched substring in {@link Rules}
|
|
62
|
+
* @returns {string} The formatted {@link Message}, such that every matched substring in {@link Rules}
|
|
50
63
|
* is formatted by the corresponding {@link Formatter}.
|
|
51
64
|
*/
|
|
52
65
|
export function Format(Message, Rules) {
|
|
@@ -65,7 +78,7 @@ export function Format(Message, Rules) {
|
|
|
65
78
|
* multiple {@link Rules} share a given key, then the respective formatter functions
|
|
66
79
|
* will be composed in the order of the given {@link Rules} objects.
|
|
67
80
|
*
|
|
68
|
-
* @returns A function that will format the `Message` passed to it according to the
|
|
81
|
+
* @returns {Formatter} A function that will format the `Message` passed to it according to the
|
|
69
82
|
* {@link Rules} passed to this function.
|
|
70
83
|
*/
|
|
71
84
|
export function MakeFormatter(...Rules) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Format.js","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"Format.js","sourceRoot":"","sources":["../../Source/Format/Format.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,OAAe;IAE/B,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,IAAI,CAAC,WAAmB,EAAE,GAAW;IAEjD,OAAO,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACnF,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,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CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CACrB,WAAW,CAAC,WAAW,CACnB,CAAE,QAAQ,EAAE,WAAW,CAAE,EACzB,gCAAiC,WAAY,aAAa;YAC1D,iCAAiC,CACpC,CACJ,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IAErD,OAAO,MAAM,CAAC,UAAU,CACpB;QACI,KAAK,EAAE,CAAC,UAAmB,EAAE,EAAE;YAE3B,OAAO,WAAW,CAAC,iBAAiB,CAChC,CAAE,WAAW,CAAE,EACf,CACI,kDAAkD;gBAClD,sBAAuB,cAAc,CAAC,UAAU,CAAE,EAAE,CACvD,EACD,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CACzB,CAAC;QACN,CAAC;QACD,GAAG,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE;KAC9B,CACJ,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorrell/cli-utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Utilities developing CLI tools with TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -89,9 +89,10 @@
|
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@clack/prompts": "^1.4.0",
|
|
92
|
+
"@effect/cli": "0.75.1",
|
|
92
93
|
"@effect/platform": "^0.96.0",
|
|
93
94
|
"@listr2/prompt-adapter-enquirer": "^4.2.1",
|
|
94
|
-
"@sorrell/utilities": "
|
|
95
|
+
"@sorrell/utilities": "1.2.13",
|
|
95
96
|
"chalk": "^5.6.2",
|
|
96
97
|
"cli-table3": "^0.6.5",
|
|
97
98
|
"clipboardy": "^5.3.1",
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
"en-inflectors": "^1.0.12",
|
|
101
102
|
"listr2": "^10.2.1",
|
|
102
103
|
"node-pty": "^1.1.0",
|
|
103
|
-
"ora": "^9.3.0"
|
|
104
|
+
"ora": "^9.3.0",
|
|
105
|
+
"terminal-link": "5.0.0"
|
|
104
106
|
}
|
|
105
107
|
}
|