diff --git a/scripts/set-secret.ts b/scripts/set-secret.ts index 16259265e..dc8b1cfe4 100644 --- a/scripts/set-secret.ts +++ b/scripts/set-secret.ts @@ -379,18 +379,14 @@ ${colors.cyan}╔═════════════════════ // 选择要配置的类别 const selectedCategories = await checkbox({ - message: '选择要配置的项目:', + message: '选择要配置的项目 (空格选中,回车确认):', choices: CATEGORIES.map((c) => ({ value: c.id, name: `${c.name} - ${c.description}`, })), + required: true, }) - if (selectedCategories.length === 0) { - log.info('未选择任何配置项') - return - } - // 选择配置目标 const target = await select({ message: '配置保存到:',