@vlandoss/vland 0.3.1 → 0.3.2
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/cli.usage.kdl +1 -1
- package/dist/run.mjs +4 -4
- package/package.json +2 -2
- package/src/actions/init.ts +2 -2
- package/src/program/index.ts +1 -1
- package/src/program/ui.ts +1 -1
package/dist/cli.usage.kdl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @generated by @usage-spec/commander from Commander.js metadata
|
|
2
2
|
name vland
|
|
3
3
|
bin vland
|
|
4
|
-
version "0.3.
|
|
4
|
+
version "0.3.2"
|
|
5
5
|
usage "[options] [command]"
|
|
6
6
|
flag --usage help="print KDL spec for this CLI (https://kdl.dev)"
|
|
7
7
|
cmd completion help="print shell completion script (usage)" {
|
package/dist/run.mjs
CHANGED
|
@@ -46,7 +46,7 @@ ${vlandColor(`
|
|
|
46
46
|
╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝ ${text.version(version)}
|
|
47
47
|
`.trim())}
|
|
48
48
|
|
|
49
|
-
🦉 ${palette.italic(palette.
|
|
49
|
+
🦉 ${palette.italic(palette.dim("The CLI to init a new project in"))} ${text.vland}\n`.trimStart();
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/program/commands/completion.ts
|
|
@@ -358,7 +358,7 @@ async function runInit(ctx, options) {
|
|
|
358
358
|
dir,
|
|
359
359
|
force: options.force
|
|
360
360
|
});
|
|
361
|
-
fetchSpin.stop(`Fetched template from ${palette.
|
|
361
|
+
fetchSpin.stop(`Fetched template from ${palette.dim(source)}`);
|
|
362
362
|
} catch (error) {
|
|
363
363
|
fetchSpin.stop("Failed to fetch template", 1);
|
|
364
364
|
throw error;
|
|
@@ -424,7 +424,7 @@ async function runInit(ctx, options) {
|
|
|
424
424
|
outro([
|
|
425
425
|
palette.success("Done!"),
|
|
426
426
|
"",
|
|
427
|
-
palette.
|
|
427
|
+
palette.dim("Next steps:"),
|
|
428
428
|
` cd ${name}`,
|
|
429
429
|
shouldInstall ? ` ${PACKAGE_MANAGER} ${runScript}` : ` ${PACKAGE_MANAGER} install && ${PACKAGE_MANAGER} ${runScript}`
|
|
430
430
|
].join("\n"));
|
|
@@ -459,7 +459,7 @@ function createInitCommand(ctx) {
|
|
|
459
459
|
async function createProgram(options) {
|
|
460
460
|
const ctx = await createContext(options.binDir);
|
|
461
461
|
const version = ctx.binPkg.version;
|
|
462
|
-
return new Command("vland").version(version, "-v, --version").addOption(new Option("--usage", `print KDL spec for this CLI (${palette.
|
|
462
|
+
return new Command("vland").version(version, "-v, --version").addOption(new Option("--usage", `print KDL spec for this CLI (${palette.dim(palette.link("https://kdl.dev"))})`)).on("option:usage", function onUsage() {
|
|
463
463
|
generateToStdout(this);
|
|
464
464
|
process.exit(0);
|
|
465
465
|
}).addHelpText("before", getBannerText(version)).addCommand(createCompletionCommand()).addCommand(createInitCommand(ctx));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlandoss/vland",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "The CLI to init a new project in Variable Land",
|
|
5
5
|
"homepage": "https://github.com/variableland/dx/tree/main/vland/cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"commander": "14.0.3",
|
|
36
36
|
"giget": "2.0.0",
|
|
37
37
|
"nypm": "0.6.0",
|
|
38
|
-
"@vlandoss/clibuddy": "0.7.
|
|
38
|
+
"@vlandoss/clibuddy": "0.7.1",
|
|
39
39
|
"@vlandoss/loggy": "0.2.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
package/src/actions/init.ts
CHANGED
|
@@ -155,7 +155,7 @@ export async function runInit(ctx: Context, options: InitOptions) {
|
|
|
155
155
|
fetchSpin.start(`Fetching ${palette.highlight(template)} template`);
|
|
156
156
|
try {
|
|
157
157
|
const { source } = await fetchTemplate({ template, dir, force: options.force });
|
|
158
|
-
fetchSpin.stop(`Fetched template from ${palette.
|
|
158
|
+
fetchSpin.stop(`Fetched template from ${palette.dim(source)}`);
|
|
159
159
|
} catch (error) {
|
|
160
160
|
fetchSpin.stop("Failed to fetch template", 1);
|
|
161
161
|
throw error;
|
|
@@ -222,7 +222,7 @@ export async function runInit(ctx: Context, options: InitOptions) {
|
|
|
222
222
|
[
|
|
223
223
|
palette.success("Done!"),
|
|
224
224
|
"",
|
|
225
|
-
palette.
|
|
225
|
+
palette.dim("Next steps:"),
|
|
226
226
|
` cd ${name}`,
|
|
227
227
|
shouldInstall ? ` ${PACKAGE_MANAGER} ${runScript}` : ` ${PACKAGE_MANAGER} install && ${PACKAGE_MANAGER} ${runScript}`,
|
|
228
228
|
].join("\n"),
|
package/src/program/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ export async function createProgram(options: Options) {
|
|
|
16
16
|
|
|
17
17
|
return new Command("vland")
|
|
18
18
|
.version(version, "-v, --version")
|
|
19
|
-
.addOption(new Option("--usage", `print KDL spec for this CLI (${palette.
|
|
19
|
+
.addOption(new Option("--usage", `print KDL spec for this CLI (${palette.dim(palette.link("https://kdl.dev"))})`))
|
|
20
20
|
.on("option:usage", function onUsage(this: Command) {
|
|
21
21
|
generateToStdout(this);
|
|
22
22
|
process.exit(0);
|
package/src/program/ui.ts
CHANGED
|
@@ -25,5 +25,5 @@ export function getBannerText(version: string) {
|
|
|
25
25
|
return `
|
|
26
26
|
${uiLogo}
|
|
27
27
|
|
|
28
|
-
🦉 ${palette.italic(palette.
|
|
28
|
+
🦉 ${palette.italic(palette.dim("The CLI to init a new project in"))} ${text.vland}\n`.trimStart();
|
|
29
29
|
}
|