Repository navigation
v0.5.0 — cce remove (alias rm) + auto-update fixes
cce v0.5.0 — cce remove: 安全删除 env / safely remove envs
新增 cce remove(别名 rm)子命令,配合二次确认避免误删;另含 auto-update 在 Windows 上的多个修复。
A new cce remove subcommand (alias rm) with confirmation prompts; plus several auto-update fixes for Windows.
用法 / Usage
cce remove kimi # 删指定 env,二次确认 / direct delete with confirm
cce remove # TTY 下弹出选择菜单 / interactive picker (TTY)
cce remove kimi -y # 跳过确认(脚本场景) / skip confirm (scripting)
cce rm kimi # 等价别名 / alias行为细节 / Behavior details
- 默认会问
Remove env "kimi"? [y/N](默认 No)/ always prompts before deleting (default No). - 删的是当前默认 env 时,同步把
default清空 / clearsdefaultif the removed env was the default. - 选择器模式选完仍要二次确认(防 Enter 误触)/ picker path still requires explicit confirm.
- 非交互(管道 / CI / 脚本)下必须显式
-y,否则直接报错 / non-TTY requires-yor errors out. - Tab 补全已为 bash / zsh / fish / powershell 四端补上 / shell completions updated.
其它修复 / Other fixes
- Auto-update 在 Windows 不再弹 cmd 窗口 —— 后台
npm install加了windowsHide/ no more cmd flashes during silent auto-update. - Auto-update 失败可重试 —— 后台安装 1 小时内没装上目标版本,下次启动自动重试(之前会被永久标记为已尝试而不再重试)/ failed background installs now retry after 1h (previously they were stuck pending forever until a newer release).
cce add覆盖同名 env 时保留用户字段 —— 只替换模板拥有的description+env,手工添加的args/argsOverride/settingsMode不再被擦掉 / overwrite preserves user-added fields.- 内部清理:移除未使用的
setEnv/removeEnvhelper / dropped dead helpers inconfig.js. - 同步
package-lock.json到当前版本(自 0.2.0 起一直漂着)/ resyncedpackage-lock.json(drifted since 0.2.0).
升级 / Upgrade: cce update 或 / or npm i -g @xiaofuzhou/cce@latest
Full changelog: v0.4.0...v0.5.0