@vlandoss/clibuddy 0.2.1-git-f3c213d.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 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
- vland: ChalkInstance | (<T>(x: T) => T);
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: safe(chalk.dim),
20
- vland: colorize("#36d399")
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlandoss/clibuddy",
3
- "version": "0.2.1-git-f3c213d.0",
3
+ "version": "0.3.1-git-1558746.0",
4
4
  "description": "A helper library to create CLIs in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/packages/clibuddy#readme",
6
6
  "bugs": {
package/src/colors.ts CHANGED
@@ -13,6 +13,6 @@ export const palette = {
13
13
  bold: safe(chalk.bold),
14
14
  italic: safe(chalk.italic),
15
15
  link: safe(chalk.underline),
16
- muted: safe(chalk.dim),
17
- vland: colorize("#36d399"),
16
+ muted: colorize("#a8afb5"),
17
+ primary: colorize("#36d399"),
18
18
  };
package/src/index.ts CHANGED
@@ -2,4 +2,5 @@ export * from "./colors.ts";
2
2
  export * from "./meta.ts";
3
3
  export * from "./run.ts";
4
4
  export * from "./services/index.ts";
5
+ export * from "./text.ts";
5
6
  export * from "./version.ts";
package/src/text.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { palette } from "./colors.ts";
2
+
3
+ export const text = {
4
+ vland: `${palette.link(palette.primary("https://variable.land"))} 👊`,
5
+ version: (version: string) => palette.muted(`v${version}`),
6
+ };