gitcode-cli 0.11.1__tar.gz → 0.12.0__tar.gz

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.
Files changed (22) hide show
  1. {gitcode_cli-0.11.1/gitcode_cli.egg-info → gitcode_cli-0.12.0}/PKG-INFO +41 -22
  2. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/README.md +40 -21
  3. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/__init__.py +1 -1
  4. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/gc-darwin-amd64 +0 -0
  5. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/gc-darwin-arm64 +0 -0
  6. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/gc-linux-amd64 +0 -0
  7. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/gc-linux-arm64 +0 -0
  8. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/gc-windows-amd64.exe +0 -0
  9. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0/gitcode_cli.egg-info}/PKG-INFO +41 -22
  10. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/pyproject.toml +1 -1
  11. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/LICENSE +0 -0
  12. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/MANIFEST.in +0 -0
  13. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/__main__.py +0 -0
  14. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/bin/.gitkeep +0 -0
  15. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gc_cli/wrapper.py +0 -0
  16. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gitcode_cli.egg-info/SOURCES.txt +0 -0
  17. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gitcode_cli.egg-info/dependency_links.txt +0 -0
  18. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gitcode_cli.egg-info/entry_points.txt +0 -0
  19. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/gitcode_cli.egg-info/top_level.txt +0 -0
  20. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/setup.cfg +0 -0
  21. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/tests/test_verify_remote_facts.py +0 -0
  22. {gitcode_cli-0.11.1 → gitcode_cli-0.12.0}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcode-cli
3
- Version: 0.11.1
3
+ Version: 0.12.0
4
4
  Summary: GitCode CLI - Command line tool for GitCode
5
5
  Author-email: GitCode CLI Contributors <support@gitcode.com>
6
6
  Maintainer-email: GitCode CLI Contributors <support@gitcode.com>
@@ -67,7 +67,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
67
67
 
68
68
  ## 安装
69
69
 
70
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。Windows 普通用户和 Node/AI 环境优先使用 npm;macOS 优先 Homebrew;Debian/Ubuntu 优先 DEB;RHEL/Fedora 优先 RPM。Python wheel 建议放入 `pipx` 或虚拟环境,CI 建议固定版本并校验 checksum。
70
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
71
+
72
+ ### 推荐:npm 一行 bootstrap(跨平台)
73
+
74
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
75
+
76
+ ```bash
77
+ npx -y @gitcode-cli/cli@latest install
78
+ gitcode version
79
+ ```
80
+
81
+ 短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
82
+
83
+ ```bash
84
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
85
+ ```
86
+
87
+ CI、审计或版本复现可固定版本:
88
+
89
+ ```bash
90
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.12.0 install
91
+ ```
92
+
93
+ 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
94
+
95
+ ```bash
96
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
97
+ gitcode version
98
+ ```
99
+
100
+ 一行 bootstrap 会把平台二进制安装到全局 bin 目录;Linux/macOS 同时配置 bash/zsh/fish 补全,Windows 跳过 shell 补全。Windows 会在用户显式执行 `install` 后把安装目录置于持久 User PATH 前面并去重;如不希望修改,传入 `--no-modify-path`。由于 `npx` 子进程无法刷新已经打开的 PowerShell,安装完成后会用中文给出当前窗口立即生效的 `$env:Path` 命令和重开终端说明。它不会修改 Machine PATH、删除或重写其他 PATH 条目,也不会调用其他包管理器卸载软件。显式 `--target-dir` 会替换该目录内的同名常规文件,不要将它指向 Python Scripts、npm prefix 等由其他包管理器持有的目录。
101
+
102
+ Linux/macOS 上若存在历史同目录 `gitcode -> gc` 别名,会在安全校验和事务保护下自动迁移;无需先卸载 PyPI 包或手工删除链接。命令显式固定 generic 与 scoped 官方 registry,并禁用 npm lifecycle scripts,避免继承当前目录或用户 npm 配置中的非官方包来源。
71
103
 
72
104
  安装或升级后可离线检查实际命令来源和全部 PATH 候选:
73
105
 
@@ -111,10 +143,10 @@ export PATH="$HOME/.local/bin:$PATH"
111
143
 
112
144
  ```bash
113
145
  # 从 Releases 下载 .deb 包
114
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc_0.11.1_amd64.deb
146
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc_0.12.0_amd64.deb
115
147
 
116
148
  # 安装
117
- sudo dpkg -i gc_0.11.1_amd64.deb
149
+ sudo dpkg -i gc_0.12.0_amd64.deb
118
150
  ```
119
151
 
120
152
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -123,10 +155,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
123
155
 
124
156
  ```bash
125
157
  # 从 Releases 下载 .rpm 包
126
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc-0.11.1-1.x86_64.rpm
158
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc-0.12.0-1.x86_64.rpm
127
159
 
128
160
  # 安装
129
- sudo rpm -i gc-0.11.1-1.x86_64.rpm
161
+ sudo rpm -i gc-0.12.0-1.x86_64.rpm
130
162
  ```
131
163
 
132
164
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -142,7 +174,7 @@ source .venv/bin/activate # Linux/macOS
142
174
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
143
175
 
144
176
  # 安装(一行命令)
145
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gitcode_cli-0.11.1-py3-none-any.whl
177
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gitcode_cli-0.12.0-py3-none-any.whl
146
178
 
147
179
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
148
180
  gitcode version
@@ -172,7 +204,7 @@ source .venv/bin/activate # Linux/macOS
172
204
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
173
205
 
174
206
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
175
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.11.1
207
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.12.0
176
208
 
177
209
  # Windows PowerShell 中推荐使用 gitcode
178
210
  gitcode version
@@ -241,20 +273,7 @@ brew upgrade gc
241
273
  shell 补全(bash/zsh/fish)随安装自动配置,无需额外操作。
242
274
  Homebrew 同时提供 `gc` 与 `gitcode`;升级后可运行 `gitcode doctor install` 检查是否仍被 pip/npm 旧入口遮蔽。
243
275
 
244
- ### npm (跨平台)
245
-
246
- 一行 bootstrap(无需全局 npm 安装,自动装二进制 + 补全):
247
-
248
- ```bash
249
- npx @gitcode-cli/cli@latest install
250
- ```
251
-
252
- 或全局安装:
253
-
254
- ```bash
255
- npm install -g @gitcode-cli/cli
256
- gitcode version
257
- ```
276
+ ### npm 更新与 PATH 诊断
258
277
 
259
278
  如果 `gitcode version` 仍显示旧版本,先直接调用 npm 安装目录中的新入口诊断,不必先卸载 pip 或手工删除旧入口:
260
279
 
@@ -38,7 +38,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
38
38
 
39
39
  ## 安装
40
40
 
41
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。Windows 普通用户和 Node/AI 环境优先使用 npm;macOS 优先 Homebrew;Debian/Ubuntu 优先 DEB;RHEL/Fedora 优先 RPM。Python wheel 建议放入 `pipx` 或虚拟环境,CI 建议固定版本并校验 checksum。
41
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
42
+
43
+ ### 推荐:npm 一行 bootstrap(跨平台)
44
+
45
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
46
+
47
+ ```bash
48
+ npx -y @gitcode-cli/cli@latest install
49
+ gitcode version
50
+ ```
51
+
52
+ 短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
53
+
54
+ ```bash
55
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
56
+ ```
57
+
58
+ CI、审计或版本复现可固定版本:
59
+
60
+ ```bash
61
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.12.0 install
62
+ ```
63
+
64
+ 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
65
+
66
+ ```bash
67
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
68
+ gitcode version
69
+ ```
70
+
71
+ 一行 bootstrap 会把平台二进制安装到全局 bin 目录;Linux/macOS 同时配置 bash/zsh/fish 补全,Windows 跳过 shell 补全。Windows 会在用户显式执行 `install` 后把安装目录置于持久 User PATH 前面并去重;如不希望修改,传入 `--no-modify-path`。由于 `npx` 子进程无法刷新已经打开的 PowerShell,安装完成后会用中文给出当前窗口立即生效的 `$env:Path` 命令和重开终端说明。它不会修改 Machine PATH、删除或重写其他 PATH 条目,也不会调用其他包管理器卸载软件。显式 `--target-dir` 会替换该目录内的同名常规文件,不要将它指向 Python Scripts、npm prefix 等由其他包管理器持有的目录。
72
+
73
+ Linux/macOS 上若存在历史同目录 `gitcode -> gc` 别名,会在安全校验和事务保护下自动迁移;无需先卸载 PyPI 包或手工删除链接。命令显式固定 generic 与 scoped 官方 registry,并禁用 npm lifecycle scripts,避免继承当前目录或用户 npm 配置中的非官方包来源。
42
74
 
43
75
  安装或升级后可离线检查实际命令来源和全部 PATH 候选:
44
76
 
@@ -82,10 +114,10 @@ export PATH="$HOME/.local/bin:$PATH"
82
114
 
83
115
  ```bash
84
116
  # 从 Releases 下载 .deb 包
85
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc_0.11.1_amd64.deb
117
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc_0.12.0_amd64.deb
86
118
 
87
119
  # 安装
88
- sudo dpkg -i gc_0.11.1_amd64.deb
120
+ sudo dpkg -i gc_0.12.0_amd64.deb
89
121
  ```
90
122
 
91
123
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -94,10 +126,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
94
126
 
95
127
  ```bash
96
128
  # 从 Releases 下载 .rpm 包
97
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc-0.11.1-1.x86_64.rpm
129
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc-0.12.0-1.x86_64.rpm
98
130
 
99
131
  # 安装
100
- sudo rpm -i gc-0.11.1-1.x86_64.rpm
132
+ sudo rpm -i gc-0.12.0-1.x86_64.rpm
101
133
  ```
102
134
 
103
135
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -113,7 +145,7 @@ source .venv/bin/activate # Linux/macOS
113
145
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
114
146
 
115
147
  # 安装(一行命令)
116
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gitcode_cli-0.11.1-py3-none-any.whl
148
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gitcode_cli-0.12.0-py3-none-any.whl
117
149
 
118
150
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
119
151
  gitcode version
@@ -143,7 +175,7 @@ source .venv/bin/activate # Linux/macOS
143
175
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
144
176
 
145
177
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
146
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.11.1
178
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.12.0
147
179
 
148
180
  # Windows PowerShell 中推荐使用 gitcode
149
181
  gitcode version
@@ -212,20 +244,7 @@ brew upgrade gc
212
244
  shell 补全(bash/zsh/fish)随安装自动配置,无需额外操作。
213
245
  Homebrew 同时提供 `gc` 与 `gitcode`;升级后可运行 `gitcode doctor install` 检查是否仍被 pip/npm 旧入口遮蔽。
214
246
 
215
- ### npm (跨平台)
216
-
217
- 一行 bootstrap(无需全局 npm 安装,自动装二进制 + 补全):
218
-
219
- ```bash
220
- npx @gitcode-cli/cli@latest install
221
- ```
222
-
223
- 或全局安装:
224
-
225
- ```bash
226
- npm install -g @gitcode-cli/cli
227
- gitcode version
228
- ```
247
+ ### npm 更新与 PATH 诊断
229
248
 
230
249
  如果 `gitcode version` 仍显示旧版本,先直接调用 npm 安装目录中的新入口诊断,不必先卸载 pip 或手工删除旧入口:
231
250
 
@@ -4,7 +4,7 @@ GitCode CLI - Command line tool for GitCode.
4
4
  This package provides a Python wrapper for the gc binary.
5
5
  """
6
6
 
7
- __version__ = "0.11.1"
7
+ __version__ = "0.12.0"
8
8
  __author__ = "GitCode CLI Contributors"
9
9
  __all__ = ["__version__", "main"]
10
10
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcode-cli
3
- Version: 0.11.1
3
+ Version: 0.12.0
4
4
  Summary: GitCode CLI - Command line tool for GitCode
5
5
  Author-email: GitCode CLI Contributors <support@gitcode.com>
6
6
  Maintainer-email: GitCode CLI Contributors <support@gitcode.com>
@@ -67,7 +67,39 @@ GitCode CLI 把仓库、Issue、PR、Release 和 Actions 带回终端,让开
67
67
 
68
68
  ## 安装
69
69
 
70
- 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。Windows 普通用户和 Node/AI 环境优先使用 npm;macOS 优先 Homebrew;Debian/Ubuntu 优先 DEB;RHEL/Fedora 优先 RPM。Python wheel 建议放入 `pipx` 或虚拟环境,CI 建议固定版本并校验 checksum。
70
+ 推荐只让一个全局安装渠道拥有 `gc` / `gitcode`。已安装 Node.js/npm 的 Windows、Linux、macOS 与 AI 环境优先使用下方 npm bootstrap;没有 Node.js 时再选择 Homebrew、DEB/RPM 或隔离的 Python wheel。CI 建议固定版本并校验 checksum。
71
+
72
+ ### 推荐:npm 一行 bootstrap(跨平台)
73
+
74
+ 已安装 Node.js/npm 时,安装或升级 CLI 的首选入口是:
75
+
76
+ ```bash
77
+ npx -y @gitcode-cli/cli@latest install
78
+ gitcode version
79
+ ```
80
+
81
+ 短命令适合用户主目录等可信环境,会继承当前目录与用户的 npm 配置。CI、审计、不可信项目目录或自定义 npm registry 环境请使用完整加固命令:
82
+
83
+ ```bash
84
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest install
85
+ ```
86
+
87
+ CI、审计或版本复现可固定版本:
88
+
89
+ ```bash
90
+ npx --yes --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@0.12.0 install
91
+ ```
92
+
93
+ 不要使用 `npm i @gitcode-cli/cli` 或 `npm install @gitcode-cli/cli` 安装全局 CLI;这两条命令只会把包加入当前项目的 `node_modules`,不会更新 PATH 中已有的 `gitcode`。需要由 npm global prefix 管理入口时,可改用:
94
+
95
+ ```bash
96
+ npm install -g --ignore-scripts --registry=https://registry.npmjs.org --@gitcode-cli:registry=https://registry.npmjs.org @gitcode-cli/cli@latest
97
+ gitcode version
98
+ ```
99
+
100
+ 一行 bootstrap 会把平台二进制安装到全局 bin 目录;Linux/macOS 同时配置 bash/zsh/fish 补全,Windows 跳过 shell 补全。Windows 会在用户显式执行 `install` 后把安装目录置于持久 User PATH 前面并去重;如不希望修改,传入 `--no-modify-path`。由于 `npx` 子进程无法刷新已经打开的 PowerShell,安装完成后会用中文给出当前窗口立即生效的 `$env:Path` 命令和重开终端说明。它不会修改 Machine PATH、删除或重写其他 PATH 条目,也不会调用其他包管理器卸载软件。显式 `--target-dir` 会替换该目录内的同名常规文件,不要将它指向 Python Scripts、npm prefix 等由其他包管理器持有的目录。
101
+
102
+ Linux/macOS 上若存在历史同目录 `gitcode -> gc` 别名,会在安全校验和事务保护下自动迁移;无需先卸载 PyPI 包或手工删除链接。命令显式固定 generic 与 scoped 官方 registry,并禁用 npm lifecycle scripts,避免继承当前目录或用户 npm 配置中的非官方包来源。
71
103
 
72
104
  安装或升级后可离线检查实际命令来源和全部 PATH 候选:
73
105
 
@@ -111,10 +143,10 @@ export PATH="$HOME/.local/bin:$PATH"
111
143
 
112
144
  ```bash
113
145
  # 从 Releases 下载 .deb 包
114
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc_0.11.1_amd64.deb
146
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc_0.12.0_amd64.deb
115
147
 
116
148
  # 安装
117
- sudo dpkg -i gc_0.11.1_amd64.deb
149
+ sudo dpkg -i gc_0.12.0_amd64.deb
118
150
  ```
119
151
 
120
152
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -123,10 +155,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
123
155
 
124
156
  ```bash
125
157
  # 从 Releases 下载 .rpm 包
126
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gc-0.11.1-1.x86_64.rpm
158
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gc-0.12.0-1.x86_64.rpm
127
159
 
128
160
  # 安装
129
- sudo rpm -i gc-0.11.1-1.x86_64.rpm
161
+ sudo rpm -i gc-0.12.0-1.x86_64.rpm
130
162
  ```
131
163
 
132
164
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -142,7 +174,7 @@ source .venv/bin/activate # Linux/macOS
142
174
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
143
175
 
144
176
  # 安装(一行命令)
145
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.11.1/gitcode_cli-0.11.1-py3-none-any.whl
177
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.12.0/gitcode_cli-0.12.0-py3-none-any.whl
146
178
 
147
179
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
148
180
  gitcode version
@@ -172,7 +204,7 @@ source .venv/bin/activate # Linux/macOS
172
204
  # .\.venv\Scripts\Activate.ps1 # Windows PowerShell
173
205
 
174
206
  # 固定版本安装,避免 PyPI 尚未同步时安装旧版本
175
- python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.11.1
207
+ python -m pip install -i https://pypi.org/simple/ gitcode-cli==0.12.0
176
208
 
177
209
  # Windows PowerShell 中推荐使用 gitcode
178
210
  gitcode version
@@ -241,20 +273,7 @@ brew upgrade gc
241
273
  shell 补全(bash/zsh/fish)随安装自动配置,无需额外操作。
242
274
  Homebrew 同时提供 `gc` 与 `gitcode`;升级后可运行 `gitcode doctor install` 检查是否仍被 pip/npm 旧入口遮蔽。
243
275
 
244
- ### npm (跨平台)
245
-
246
- 一行 bootstrap(无需全局 npm 安装,自动装二进制 + 补全):
247
-
248
- ```bash
249
- npx @gitcode-cli/cli@latest install
250
- ```
251
-
252
- 或全局安装:
253
-
254
- ```bash
255
- npm install -g @gitcode-cli/cli
256
- gitcode version
257
- ```
276
+ ### npm 更新与 PATH 诊断
258
277
 
259
278
  如果 `gitcode version` 仍显示旧版本,先直接调用 npm 安装目录中的新入口诊断,不必先卸载 pip 或手工删除旧入口:
260
279
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitcode-cli"
7
- version = "0.11.1"
7
+ version = "0.12.0"
8
8
  description = "GitCode CLI - Command line tool for GitCode"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes