feat(updater): 引入 24 小时静默更新检测与一键升级功能

- 新增 `updater` 模块实现 GitHub Release 版本异步检查与本地缓存
- 新增 `git air update` 与 `git air version` 命令支持一键升级及版本检查
- 优化 CLI 终端交互,在首页渲染时提供友好的新版本升级提示卡片
This commit is contained in:
unclesam committed 2026-08-22 17:07:02 +08:00
1 parent 10cbfc39a5
commit 7632652b7b
9 files changed
+398 -64

No files matched your search

+14
View File
@@ -214,6 +214,20 @@ git air hook uninstall
---
### 5. 版本查看与一键自动升级 (`git air update`)
`git-air` 内置了**轻量级 24 小时静默更新检测**,当 GitHub 发布新版本时会在终端底部自动提醒;你也可以随时手动检查与一键升级:
```bash
# 查看当前版本并在线检查更新
git air version
# 一键自动拉取并升级到最新版本
git air update
```
---
## ⚙️ 配置文件说明
`git-air` 支持多层配置覆盖,优先级从高到低为: