Conversation
Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com>
Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com>
src/cli.js
Outdated
| console.log(getHelpText()); | ||
| break; | ||
| case "setup": | ||
| exitIfNotZsh("setup"); |
There was a problem hiding this comment.
你这里有必要一行行都写一遍吗?最前面写一遍不就行了,不在乎标题,不是 zsh 就退出提示一个通用信息就行了 @copilot
There was a problem hiding this comment.
已按这个方向收敛,src/cli.js 现在改成在进入 switch 前统一做一次通用的 zsh 检查,help 不受影响,不再每个 command 单独写一遍。对应提交:49be73e。
截图:https://github.com/user-attachments/assets/8eb3f88c-8fd9-44b5-ad71-7c8c97c269bd
Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com>
|
@copilot 我更新了代码,这下直接退出了: added 54 packages in 683ms |
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.