@huabuyu233/edgit 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,6 +76,17 @@ edgit get https://github.com/VSCodium/vscodium/releases/download/1.135.06055/VSC
76
76
  edgit get https://github.com/xxx/yyy/releases/download/v1.0/tool.zip out.zip # 指定输出文件名
77
77
  ```
78
78
 
79
+ Docker Hub 镜像加速拉取:
80
+
81
+ ```bash
82
+ edgit docker pull nginx:1.27
83
+ edgit docker pull redis redis:7-alpine # 可多个
84
+ ```
85
+
86
+ - 仅加速 Docker Hub 镜像(ghcr.io 等其他 registry 原样透传)
87
+ - 不修改 daemon.json、不重启 docker;拉取成功自动 `docker tag` 回原名,`docker run nginx` 直接可用
88
+ - 全部镜像站失败自动回落 Docker Hub 直连
89
+
79
90
  非 github.com 地址自动透传给 `git clone`,不走镜像:
80
91
 
81
92
  ```bash
@@ -101,6 +112,26 @@ edgit mirrors enable gh-proxy.com # 启用
101
112
  edgit mirrors remove gh-proxy.com # 删除
102
113
  ```
103
114
 
115
+ ## 帮助与自检
116
+
117
+ 忘记命令用法或镜像站挂了时,交互式帮助会先询问意图再给出对应指南:
118
+
119
+ ```bash
120
+ edgit help # 交互菜单:1 命令用法 / 2 镜像维护指南
121
+ edgit help usage # 直达命令用法
122
+ edgit help mirrors # 直达镜像维护指南
123
+ ```
124
+
125
+ 自检命令(面向开发者):先做环境预检(git 必需,docker 缺失则跳过相关测试),再逐项测试
126
+ cli / clone / get / docker / mirrors,失败继续,结束清理全部测试产物(临时目录、配置备份、
127
+ docker 测试镜像)并汇总报告:
128
+
129
+ ```bash
130
+ edgit test # 测试全部功能
131
+ edgit test clone # 只测试单项
132
+ edgit test get <url> # 自定义下载地址
133
+ ```
134
+
104
135
  内置镜像按**权威性**排序(知名高校镜像在前,其次经久不衰、社区口碑好的镜像,全部可增删启停):
105
136
 
106
137
  | 优先级 | 镜像 | clone | release | 说明 |
@@ -116,6 +147,20 @@ edgit mirrors remove gh-proxy.com # 删除
116
147
 
117
148
  > 高校镜像(TUNA/USTC)只镜像 Release 文件和特定仓库,不支持任意仓库的 git clone,因此仅参与 Release 下载(`edgit get`);clone 按 1→3→8 中支持 clone 的镜像探测。镜像站列表会随时间失效,可通过 `mirrors add` / `remove` 自行维护。
118
149
 
150
+ 内置 Docker Hub 加速站(`edgit docker pull` 专用,按权威性排序):
151
+
152
+ | 优先级 | 镜像站 | 说明 |
153
+ |---|---|---|
154
+ | 1 | docker.m.daocloud.io | DaoCloud 老牌厂商 |
155
+ | 2 | docker.1ms.run | 毫秒镜像,金融级 SLA |
156
+ | 3 | docker.xuanyuan.me | 轩辕镜像免费版(限流) |
157
+ | 4 | docker.1panel.live | 1Panel 出品(限中国地区) |
158
+ | 5 | dockerproxy.net | 社区老牌 |
159
+ | 6 | hub.rat.dev | 社区镜像 |
160
+ | 7 | proxy.vvvv.ee | 社区镜像 |
161
+
162
+ > 高校 Docker Hub 镜像(TUNA/USTC/上海交大)均已停服或下架,故不收录。
163
+
119
164
  ## 工作原理
120
165
 
121
166
  ```
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huabuyu233/edgit",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "GitHub 仓库镜像加速克隆工具 —— 镜像加速 git clone 与 Release 下载,探测命中后自动还原 remote,对 git 零侵入",
5
5
  "keywords": [
6
6
  "git",