@vlandoss/clibuddy 0.3.0 → 0.3.1-git-1558746.0
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/dist/index.d.mts +8 -2
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
- package/src/colors.ts +2 -2
- package/src/index.ts +1 -0
- package/src/text.ts +6 -0
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ declare const palette: {
|
|
|
12
12
|
italic: ChalkInstance | (<T>(x: T) => T);
|
|
13
13
|
link: ChalkInstance | (<T>(x: T) => T);
|
|
14
14
|
muted: ChalkInstance | (<T>(x: T) => T);
|
|
15
|
-
|
|
15
|
+
primary: ChalkInstance | (<T>(x: T) => T);
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/meta.d.ts
|
|
@@ -71,7 +71,13 @@ declare function createShellService(options?: CreateOptions): ShellService;
|
|
|
71
71
|
declare function isProcessOutput(value: unknown): value is ProcessOutput;
|
|
72
72
|
declare function getPreferLocal(localBaseBinPath: string | Array<string> | undefined): string[] | undefined;
|
|
73
73
|
//#endregion
|
|
74
|
+
//#region src/text.d.ts
|
|
75
|
+
declare const text: {
|
|
76
|
+
vland: string;
|
|
77
|
+
version: (version: string) => string;
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
74
80
|
//#region src/version.d.ts
|
|
75
81
|
declare function getVersion(pkg: PkgService): string;
|
|
76
82
|
//#endregion
|
|
77
|
-
export { CreateOptions, PkgService, type Project, Shell, ShellOptions, ShellService, colorIsSupported, colorize, createPkgService, createShellService, cwd, dirnameOf, filenameOf, getPreferLocal, getVersion, isProcessOutput, isRaw, palette, quote, run };
|
|
83
|
+
export { CreateOptions, PkgService, type Project, Shell, ShellOptions, ShellService, colorIsSupported, colorize, createPkgService, createShellService, cwd, dirnameOf, filenameOf, getPreferLocal, getVersion, isProcessOutput, isRaw, palette, quote, run, text };
|
package/dist/index.mjs
CHANGED
|
@@ -16,8 +16,8 @@ const palette = {
|
|
|
16
16
|
bold: safe(chalk.bold),
|
|
17
17
|
italic: safe(chalk.italic),
|
|
18
18
|
link: safe(chalk.underline),
|
|
19
|
-
muted:
|
|
20
|
-
|
|
19
|
+
muted: colorize("#a8afb5"),
|
|
20
|
+
primary: colorize("#36d399")
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/meta.ts
|
|
@@ -179,9 +179,15 @@ function createShellService(options = {}) {
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
|
+
//#region src/text.ts
|
|
183
|
+
const text = {
|
|
184
|
+
vland: `${palette.link(palette.primary("https://variable.land"))} 👊`,
|
|
185
|
+
version: (version) => palette.muted(`v${version}`)
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
182
188
|
//#region src/version.ts
|
|
183
189
|
function getVersion(pkg) {
|
|
184
190
|
return process.env.VERSION || pkg.packageJson.version;
|
|
185
191
|
}
|
|
186
192
|
//#endregion
|
|
187
|
-
export { PkgService, ShellService, colorIsSupported, colorize, createPkgService, createShellService, cwd, dirnameOf, filenameOf, getPreferLocal, getVersion, isProcessOutput, isRaw, palette, quote, run };
|
|
193
|
+
export { PkgService, ShellService, colorIsSupported, colorize, createPkgService, createShellService, cwd, dirnameOf, filenameOf, getPreferLocal, getVersion, isProcessOutput, isRaw, palette, quote, run, text };
|
package/package.json
CHANGED
package/src/colors.ts
CHANGED
package/src/index.ts
CHANGED