Skip to content

Commit 3bf861c

Browse files
committed
feat: add infrastructure explanation prompts in create flow
Help users understand that Docker infrastructure is optional and what happens when they skip it (need to provide existing service details). Made-with: Cursor
1 parent e51dd72 commit 3bf861c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/commands/create.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ async function _createFlow() {
373373
if (!dockerOk) {
374374
clack.log.warn(chalk.yellow(t("infraDockerFail")));
375375
} else {
376+
clack.log.info(chalk.cyan(t("infraDescription")));
377+
clack.log.info(chalk.dim(t("infraSkipHint")));
378+
376379
const infraSelection = await clack.multiselect({
377380
message: `${t("infraSelect")} ${chalk.dim(`(${t("envOptional")})`)} ${chalk.dim(t("multiselectHint"))}`,
378381
options: [
@@ -411,6 +414,9 @@ async function _createFlow() {
411414
}
412415

413416
// ─── 服务连接信息配置(始终提示) ───
417+
if (!hasInfra) {
418+
clack.log.warn(chalk.yellow(t("infraExternalHint")));
419+
}
414420
clack.log.step(t("envConfigTitle"));
415421

416422
// 辅助:根据服务是否由 Docker 管理生成 hint

0 commit comments

Comments
 (0)