From 0b41aa5a2d1c3b41f4bbe535fcb18e356770d9ac Mon Sep 17 00:00:00 2001 From: dswbx Date: Thu, 3 Apr 2025 09:17:29 +0200 Subject: [PATCH] cli: create: allow non-interactive create (#137) --- app/src/cli/commands/create/create.ts | 12 +++--- .../commands/create/templates/cloudflare.ts | 37 +++++++++++-------- .../cli/commands/create/templates/index.ts | 1 + 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/app/src/cli/commands/create/create.ts b/app/src/cli/commands/create/create.ts index 478362f..3c5233d 100644 --- a/app/src/cli/commands/create/create.ts +++ b/app/src/cli/commands/create/create.ts @@ -8,7 +8,7 @@ import { Option } from "commander"; import { env } from "core"; import color from "picocolors"; import { overridePackageJson, updateBkndPackages } from "./npm"; -import { type Template, templates } from "./templates"; +import { type Template, templates, type TemplateSetupCtx } from "./templates"; import { createScoped, flush } from "cli/utils/telemetry"; const config = { @@ -35,6 +35,8 @@ export const create: CliCommand = (program) => { .addOption(new Option("-i, --integration ", "integration to use")) .addOption(new Option("-t, --template