diff --git a/.changeset/init-banner.md b/.changeset/init-banner.md new file mode 100644 index 0000000..555c537 --- /dev/null +++ b/.changeset/init-banner.md @@ -0,0 +1,5 @@ +--- +"@vlandoss/vland": patch +--- + +Show the vland banner at the start of the `init` command diff --git a/packages/vland/src/program/commands/init.ts b/packages/vland/src/program/commands/init.ts index f272be7..8f6683c 100644 --- a/packages/vland/src/program/commands/init.ts +++ b/packages/vland/src/program/commands/init.ts @@ -2,7 +2,7 @@ import { Argument, createCommand, Option } from "commander"; import { runInit } from "#src/actions/init.ts"; import { TEMPLATES, type TemplateName } from "#src/actions/template.ts"; import type { Context } from "#src/services/ctx.ts"; -import { TOOL_LABELS } from "../ui.ts"; +import { getBannerText, TOOL_LABELS } from "../ui.ts"; type InitOptions = { dir?: string; @@ -25,6 +25,7 @@ export function createInitCommand(ctx: Context) { .addOption(new Option("--no-git", "skip git init")) .addOption(new Option("-f, --force", "overwrite existing directory").default(false)) .action(async (name: string | undefined, options: InitOptions) => { + console.log(getBannerText(ctx.binPkg.version)); await runInit(ctx, { name, ...options,