Skip to content

fix(scripts): add checkbox hint and required validation for set-secret - #161

Merged
Gaubee merged 1 commit into
mainfrom
fix/set-secret-checkbox-hint
Jan 4, 2026
Merged

Gaubee merged 1 commit into
mainfrom
fix/set-secret-checkbox-hint

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

问题

pnpm set-secret 在用户选择后立即退出,因为 checkbox 需要先按 Space 选中再按 Enter 确认,用户不知道这个操作方式。

修复

  • 添加操作提示 (空格选中,回车确认)
  • 添加 required: true 强制至少选中一项
  • 移除冗余的空数组检查(required 已保证不为空)

- Add operation hint '(空格选中,回车确认)' to guide users
- Add required: true to prevent empty selection
- Remove redundant empty check since required handles it
@Gaubee
Gaubee merged commit 67c196a into main Jan 4, 2026
5 checks passed
@Gaubee
Gaubee deleted the fix/set-secret-checkbox-hint branch January 4, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant