@vlandoss/vland 0.1.0 → 0.1.1-git-5664ea5.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/cli.usage.kdl +1 -1
- package/dist/run.mjs +1 -0
- package/package.json +3 -3
- package/src/program/commands/init.ts +2 -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.1.0"
|
|
4
|
+
version "0.1.1-git-5664ea5.0"
|
|
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
|
@@ -368,6 +368,7 @@ function createInitCommand(ctx) {
|
|
|
368
368
|
"yarn",
|
|
369
369
|
"bun"
|
|
370
370
|
])).addOption(new Option("--no-install", "skip dependency installation")).addOption(new Option("--no-git", "skip git init")).addOption(new Option("-f, --force", "overwrite existing directory").default(false)).action(async (name, options) => {
|
|
371
|
+
console.log(getBannerText(ctx.binPkg.version));
|
|
371
372
|
await runInit(ctx, {
|
|
372
373
|
name,
|
|
373
374
|
...options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vlandoss/vland",
|
|
3
|
-
"version": "0.1.0",
|
|
3
|
+
"version": "0.1.1-git-5664ea5.0",
|
|
4
4
|
"description": "The CLI to init a new project in Variable Land",
|
|
5
5
|
"homepage": "https://github.com/variableland/dx/tree/main/packages/vland#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"commander": "14.0.3",
|
|
36
36
|
"giget": "2.0.0",
|
|
37
37
|
"nypm": "0.6.0",
|
|
38
|
-
"@vlandoss/
|
|
39
|
-
"@vlandoss/
|
|
38
|
+
"@vlandoss/clibuddy": "0.5.0",
|
|
39
|
+
"@vlandoss/loggy": "0.2.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
@@ -2,7 +2,7 @@ import { Argument, createCommand, Option } from "commander";
|
|
|
2
2
|
import { runInit } from "#src/actions/init.ts";
|
|
3
3
|
import { TEMPLATES, type TemplateName } from "#src/actions/template.ts";
|
|
4
4
|
import type { Context } from "#src/services/ctx.ts";
|
|
5
|
-
import { TOOL_LABELS } from "../ui.ts";
|
|
5
|
+
import { getBannerText, TOOL_LABELS } from "../ui.ts";
|
|
6
6
|
|
|
7
7
|
type InitOptions = {
|
|
8
8
|
dir?: string;
|
|
@@ -25,6 +25,7 @@ export function createInitCommand(ctx: Context) {
|
|
|
25
25
|
.addOption(new Option("--no-git", "skip git init"))
|
|
26
26
|
.addOption(new Option("-f, --force", "overwrite existing directory").default(false))
|
|
27
27
|
.action(async (name: string | undefined, options: InitOptions) => {
|
|
28
|
+
console.log(getBannerText(ctx.binPkg.version));
|
|
28
29
|
await runInit(ctx, {
|
|
29
30
|
name,
|
|
30
31
|
...options,
|