@sorrell/cli-utilities 1.0.46 → 1.0.48
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/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/Git/Git.Internal.Types.d.ts +12 -0
- package/Distribution/Git/Git.Internal.Types.d.ts.map +1 -0
- package/Distribution/Git/Git.Internal.Types.js +8 -0
- package/Distribution/Git/Git.Internal.Types.js.map +1 -0
- package/Distribution/Git/Git.Types.d.ts +12 -0
- package/Distribution/Git/Git.Types.d.ts.map +1 -0
- package/Distribution/Git/Git.Types.js +8 -0
- package/Distribution/Git/Git.Types.js.map +1 -0
- package/Distribution/Git/Git.d.ts +28 -0
- package/Distribution/Git/Git.d.ts.map +1 -0
- package/Distribution/Git/Git.js +43 -0
- package/Distribution/Git/Git.js.map +1 -0
- package/Distribution/Git/index.d.ts +9 -0
- package/Distribution/Git/index.d.ts.map +1 -0
- package/Distribution/Git/index.js +9 -0
- package/Distribution/Git/index.js.map +1 -0
- package/Distribution/index.d.ts +4 -0
- package/Distribution/index.d.ts.map +1 -1
- package/Distribution/index.js +4 -0
- package/Distribution/index.js.map +1 -1
- package/package.json +13 -3
|
@@ -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,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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Git.Internal.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/** The data used in {@link RepoNotCleanError}. */
|
|
8
|
+
export type FRepoNotCleanErrorData = Readonly<{
|
|
9
|
+
RepositoryPath: string;
|
|
10
|
+
StatusOutput: string;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=Git.Internal.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.Internal.Types.d.ts","sourceRoot":"","sources":["../../Source/Git/Git.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,kDAAkD;AAClD,MAAM,MAAM,sBAAsB,GAC9B,QAAQ,CAAC;IACL,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.Internal.Types.js","sourceRoot":"","sources":["../../Source/Git/Git.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Git.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { CommandExecutor, Error } from "@effect/platform";
|
|
8
|
+
import type { RepoNotCleanError } from "./Git.js";
|
|
9
|
+
import type { Effect } from "effect";
|
|
10
|
+
/** The {@link Effect.Effect | effect} returned by {@link RequireCleanGitRepository}. */
|
|
11
|
+
export type ERequireCleanRepo = Effect.Effect<void, RepoNotCleanError | Error.PlatformError, CommandExecutor.CommandExecutor>;
|
|
12
|
+
//# sourceMappingURL=Git.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.Types.d.ts","sourceRoot":"","sources":["../../Source/Git/Git.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAA6B,MAAM,UAAU,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,wFAAwF;AACxF,MAAM,MAAM,iBAAiB,GACzB,MAAM,CAAC,MAAM,CACT,IAAI,EACJ,iBAAiB,GAAG,KAAK,CAAC,aAAa,EACvC,eAAe,CAAC,eAAe,CAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.Types.js","sourceRoot":"","sources":["../../Source/Git/Git.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Git.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { ERequireCleanRepo } from "./Git.Types.js";
|
|
8
|
+
import type { FRepoNotCleanErrorData } from "./Git.Internal.Types.js";
|
|
9
|
+
declare const RepoNotCleanError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
10
|
+
readonly _tag: "RepoNotCleanError";
|
|
11
|
+
} & Readonly<A>;
|
|
12
|
+
/** The error that is thrown when the current `git` repo must be clean, but is not. */
|
|
13
|
+
export declare class RepoNotCleanError extends RepoNotCleanError_base<FRepoNotCleanErrorData> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get an {@link Effect.Effect | effect} that causes the program to fail if a given `git`
|
|
17
|
+
* repo is not clean.
|
|
18
|
+
*
|
|
19
|
+
* @param RepositoryPath - The *optional* path to a directory in the repository. If no path is specified,
|
|
20
|
+
* then the current working directory is used.
|
|
21
|
+
*
|
|
22
|
+
* @returns {ERequireCleanRepo} An {@link Effect.Effect | effect} that causes the program to fail
|
|
23
|
+
* if the `git` repo at the given {@link RepositoryPath} (or CWD if no {@link RepositoryPath} is specified)
|
|
24
|
+
* is not clean.
|
|
25
|
+
*/
|
|
26
|
+
export declare function RequireCleanGitRepository(RepositoryPath?: string): ERequireCleanRepo;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=Git.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.d.ts","sourceRoot":"","sources":["../../Source/Git/Git.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;;;;AAEtE,sFAAsF;AACtF,qBAAa,iBAAkB,SAAQ,uBAAsC,sBAAsB,CAAC;CAAI;AAIxG;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,iBAAiB,CA0BpF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Git.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { Data, Effect } from "effect";
|
|
8
|
+
import { Command } from "@effect/platform";
|
|
9
|
+
/** The error that is thrown when the current `git` repo must be clean, but is not. */
|
|
10
|
+
export class RepoNotCleanError extends Data.TaggedError("RepoNotCleanError") {
|
|
11
|
+
}
|
|
12
|
+
;
|
|
13
|
+
/* eslint-disable jsdoc/require-example */
|
|
14
|
+
/**
|
|
15
|
+
* Get an {@link Effect.Effect | effect} that causes the program to fail if a given `git`
|
|
16
|
+
* repo is not clean.
|
|
17
|
+
*
|
|
18
|
+
* @param RepositoryPath - The *optional* path to a directory in the repository. If no path is specified,
|
|
19
|
+
* then the current working directory is used.
|
|
20
|
+
*
|
|
21
|
+
* @returns {ERequireCleanRepo} An {@link Effect.Effect | effect} that causes the program to fail
|
|
22
|
+
* if the `git` repo at the given {@link RepositoryPath} (or CWD if no {@link RepositoryPath} is specified)
|
|
23
|
+
* is not clean.
|
|
24
|
+
*/
|
|
25
|
+
export function RequireCleanGitRepository(RepositoryPath) {
|
|
26
|
+
return Effect.gen(function* () {
|
|
27
|
+
if (RepositoryPath === undefined) {
|
|
28
|
+
RepositoryPath = process.cwd();
|
|
29
|
+
}
|
|
30
|
+
const StatusCommand = Command
|
|
31
|
+
.make("git", "status", "--porcelain=v1")
|
|
32
|
+
.pipe(Command.workingDirectory(RepositoryPath));
|
|
33
|
+
const StatusOutput = yield* Command.string(StatusCommand);
|
|
34
|
+
if (StatusOutput.trim().length > 0) {
|
|
35
|
+
return yield* Effect.fail(new RepoNotCleanError({
|
|
36
|
+
RepositoryPath,
|
|
37
|
+
StatusOutput
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/* eslint-enable jsdoc/require-example */
|
|
43
|
+
//# sourceMappingURL=Git.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Git.js","sourceRoot":"","sources":["../../Source/Git/Git.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,sFAAsF;AACtF,MAAM,OAAO,iBAAkB,SAAQ,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAyB;CAAI;AAAA,CAAC;AAEzG,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,yBAAyB,CAAC,cAAuB;IAE7D,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAEvB,IAAI,cAAc,KAAK,SAAS,EAChC,CAAC;YACG,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QACnC,CAAC;QAED,MAAM,aAAa,GACf,OAAO;aACF,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,gBAAgB,CAAC;aACvC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;QAExD,MAAM,YAAY,GAAW,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAElE,IAAI,YAAY,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAClC,CAAC;YACG,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CACrB,IAAI,iBAAiB,CAAC;gBAClB,cAAc;gBACd,YAAY;aACf,CAAC,CACL,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED,yCAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Source/Git/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Source/Git/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
package/Distribution/index.d.ts
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
export * as Command from "./Command/index.js";
|
|
8
|
+
export * as English from "./English/index.js";
|
|
9
|
+
export * as PackageConfig from "./PackageConfig/index.js";
|
|
8
10
|
export * as Listr from "./Listr/index.js";
|
|
11
|
+
export * as Fs from "./FileSystem/index.js";
|
|
12
|
+
export * as Git from "./Git/index.js";
|
|
9
13
|
export * as PseudoTerminal from "./PseudoTerminal/index.js";
|
|
10
14
|
export * as Format from "./Format/index.js";
|
|
11
15
|
export * as Ora from "./Ora/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
package/Distribution/index.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
export * as Command from "./Command/index.js";
|
|
8
|
+
export * as English from "./English/index.js";
|
|
9
|
+
export * as PackageConfig from "./PackageConfig/index.js";
|
|
8
10
|
export * as Listr from "./Listr/index.js";
|
|
11
|
+
export * as Fs from "./FileSystem/index.js";
|
|
12
|
+
export * as Git from "./Git/index.js";
|
|
9
13
|
export * as PseudoTerminal from "./PseudoTerminal/index.js";
|
|
10
14
|
export * as Format from "./Format/index.js";
|
|
11
15
|
export * as Ora from "./Ora/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,cAAc,0BAA0B,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.48",
|
|
4
4
|
"description": "Utilities developing CLI tools with TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
"utilities",
|
|
9
9
|
"typescript",
|
|
10
10
|
"ts",
|
|
11
|
+
"sorrell",
|
|
11
12
|
"inquirer",
|
|
12
13
|
"ora",
|
|
13
|
-
"commander"
|
|
14
|
+
"commander",
|
|
15
|
+
"clack",
|
|
16
|
+
"prompts"
|
|
14
17
|
],
|
|
15
18
|
"homepage": "https://github.com/GageSorrell/SorrellWm/tree/Master/Package/CliUtilities",
|
|
16
19
|
"bugs": {
|
|
@@ -46,6 +49,12 @@
|
|
|
46
49
|
"require": "./Distribution/FileSystem/index.js",
|
|
47
50
|
"types": "./Distribution/FileSystem/index.d.ts"
|
|
48
51
|
},
|
|
52
|
+
"./git": {
|
|
53
|
+
"default": "./Distribution/Git/index.js",
|
|
54
|
+
"import": "./Distribution/Git/index.js",
|
|
55
|
+
"require": "./Distribution/Git/index.js",
|
|
56
|
+
"types": "./Distribution/Git/index.d.ts"
|
|
57
|
+
},
|
|
49
58
|
"./inquirer": {
|
|
50
59
|
"default": "./Distribution/Inquirer/index.js",
|
|
51
60
|
"import": "./Distribution/Inquirer/index.js",
|
|
@@ -91,6 +100,7 @@
|
|
|
91
100
|
"en-inflectors": "^1.0.12",
|
|
92
101
|
"listr2": "^10.2.1",
|
|
93
102
|
"node-pty": "^1.1.0",
|
|
94
|
-
"ora": "^9.3.0"
|
|
103
|
+
"ora": "^9.3.0",
|
|
104
|
+
"terminal-link": "5.0.0"
|
|
95
105
|
}
|
|
96
106
|
}
|