gitcode-cli 0.5.6__tar.gz → 0.5.9__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 (21) hide show
  1. {gitcode_cli-0.5.6/gitcode_cli.egg-info → gitcode_cli-0.5.9}/PKG-INFO +24 -21
  2. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/README.md +23 -20
  3. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/__init__.py +1 -1
  4. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/gc-darwin-amd64 +0 -0
  5. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/gc-darwin-arm64 +0 -0
  6. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/gc-linux-amd64 +0 -0
  7. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/gc-linux-arm64 +0 -0
  8. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/gc-windows-amd64.exe +0 -0
  9. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9/gitcode_cli.egg-info}/PKG-INFO +24 -21
  10. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/pyproject.toml +1 -1
  11. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/LICENSE +0 -0
  12. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/MANIFEST.in +0 -0
  13. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/__main__.py +0 -0
  14. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/bin/.gitkeep +0 -0
  15. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gc_cli/wrapper.py +0 -0
  16. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gitcode_cli.egg-info/SOURCES.txt +0 -0
  17. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gitcode_cli.egg-info/dependency_links.txt +0 -0
  18. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gitcode_cli.egg-info/entry_points.txt +0 -0
  19. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/gitcode_cli.egg-info/top_level.txt +0 -0
  20. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/setup.cfg +0 -0
  21. {gitcode_cli-0.5.6 → gitcode_cli-0.5.9}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitcode-cli
3
- Version: 0.5.6
3
+ Version: 0.5.9
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>
@@ -33,7 +33,7 @@ Dynamic: license-file
33
33
 
34
34
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
35
35
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
36
- [![Release](https://img.shields.io/badge/Release-v0.5.6-blue)](https://gitcode.com/gitcode-cli/cli/releases)
36
+ [![Release](https://img.shields.io/badge/Release-v0.5.9-blue)](https://gitcode.com/gitcode-cli/cli/releases)
37
37
 
38
38
  GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验。
39
39
 
@@ -55,6 +55,7 @@ GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验
55
55
  - [回归说明](./docs/REGRESSION.md)
56
56
  - [打包说明](./docs/PACKAGING.md)
57
57
  - [AI 操作指南(外部项目)](./docs/AI-GUIDE.md)
58
+ - [应用案例库](./Example/index.md)
58
59
  - [开发规范](./spec/README.md)
59
60
  - [真相源矩阵](./spec/governance/source-of-truth-matrix.md)
60
61
  - [AI 本地开发流程](./spec/workflows/ai-local-development-workflow.md)
@@ -98,10 +99,10 @@ export PATH="$HOME/.local/bin:$PATH"
98
99
 
99
100
  ```bash
100
101
  # 从 Releases 下载 .deb 包
101
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc_0.5.6_amd64.deb
102
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc_0.5.9_amd64.deb
102
103
 
103
104
  # 安装
104
- sudo dpkg -i gc_0.5.6_amd64.deb
105
+ sudo dpkg -i gc_0.5.9_amd64.deb
105
106
  ```
106
107
 
107
108
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -110,10 +111,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
110
111
 
111
112
  ```bash
112
113
  # 从 Releases 下载 .rpm 包
113
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc-0.5.6-1.x86_64.rpm
114
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc-0.5.9-1.x86_64.rpm
114
115
 
115
116
  # 安装
116
- sudo rpm -i gc-0.5.6-1.x86_64.rpm
117
+ sudo rpm -i gc-0.5.9-1.x86_64.rpm
117
118
  ```
118
119
 
119
120
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -129,7 +130,7 @@ source .venv/bin/activate # Linux/macOS
129
130
  # .venv\Scripts\activate # Windows
130
131
 
131
132
  # 安装(一行命令)
132
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gitcode_cli-0.5.6-py3-none-any.whl
133
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gitcode_cli-0.5.9-py3-none-any.whl
133
134
 
134
135
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
135
136
  gitcode version
@@ -139,6 +140,12 @@ gitcode version
139
140
  - wheel 会同时安装 `gc` 和 `gitcode` 两个命令入口,功能相同。
140
141
  - DEB/RPM 包也会同时安装 `gc` 和 `gitcode`;Linux 上二者功能相同。
141
142
  - Windows PowerShell 预置 `gc` 作为 `Get-Content` 别名;如果 `gc version` 被解析为读取文件,请改用 `gitcode version`、`gc.exe version` 或 `python -m gc_cli version`。
143
+ - Windows PowerShell 中通过 `--body-file -` / `--comment-file -` 管道传入中文或其他非 ASCII 正文时,推荐使用 UTF-8 文件;如果必须直接管道,先设置 `$OutputEncoding = [System.Text.UTF8Encoding]::new($false)`。CLI 会拦截疑似已被 PowerShell 损坏成 `???` 的输入并提示正确用法。
144
+
145
+ ```powershell
146
+ Set-Content -Path body.md -Value "中文正文" -Encoding UTF8
147
+ gitcode issue create -R owner/repo --title "标题" --body-file body.md
148
+ ```
142
149
 
143
150
  ### PyPI(备选)
144
151
 
@@ -155,31 +162,27 @@ pip install gitcode-cli
155
162
  gitcode version
156
163
  ```
157
164
 
158
- ### 预编译二进制文件
165
+ ### Linux 二进制文件
159
166
 
160
- 从 Release Assets 直接下载对应平台的二进制文件:
167
+ 从 Release Assets 直接下载 Linux 二进制文件:
161
168
 
162
169
  | 平台 | 文件 |
163
170
  |------|------|
164
- | Linux x64 | `gc_<version>_linux_amd64.tar.gz` |
165
- | Linux ARM64 | `gc_<version>_linux_arm64.tar.gz` |
166
- | macOS Intel | `gc_<version>_darwin_amd64.tar.gz` |
167
- | macOS Apple Silicon | `gc_<version>_darwin_arm64.tar.gz` |
168
- | Windows x64 | `gc_<version>_windows_amd64.zip` |
171
+ | Linux x64 | `gc_linux_amd64` |
172
+ | Linux ARM64 | `gc_linux_arm64` |
169
173
 
170
174
  下载地址: https://gitcode.com/gitcode-cli/cli/releases
171
175
 
172
- 解压后将二进制文件放到 PATH 目录:
176
+ 下载后赋予可执行权限,并放到 PATH 目录:
173
177
 
174
178
  ```bash
175
- # Linux/macOS
176
- tar -xzf gc_*.tar.gz
177
- mv gc ~/.local/bin/
178
-
179
- # Windows
180
- # 解压 zip 文件后,将 gc.exe 放到 PATH 目录
179
+ chmod +x gc_linux_amd64
180
+ mv gc_linux_amd64 ~/.local/bin/gc
181
+ gc version
181
182
  ```
182
183
 
184
+ Windows 和 macOS 用户建议使用上方 wheel 包;wheel 内置 Linux、macOS 和 Windows 二进制,并同时提供 `gc` 与 `gitcode` 两个命令入口。
185
+
183
186
  ### 规划中的安装方式
184
187
 
185
188
  以下安装方式正在开发中:
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
6
6
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
- [![Release](https://img.shields.io/badge/Release-v0.5.6-blue)](https://gitcode.com/gitcode-cli/cli/releases)
7
+ [![Release](https://img.shields.io/badge/Release-v0.5.9-blue)](https://gitcode.com/gitcode-cli/cli/releases)
8
8
 
9
9
  GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验。
10
10
 
@@ -26,6 +26,7 @@ GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验
26
26
  - [回归说明](./docs/REGRESSION.md)
27
27
  - [打包说明](./docs/PACKAGING.md)
28
28
  - [AI 操作指南(外部项目)](./docs/AI-GUIDE.md)
29
+ - [应用案例库](./Example/index.md)
29
30
  - [开发规范](./spec/README.md)
30
31
  - [真相源矩阵](./spec/governance/source-of-truth-matrix.md)
31
32
  - [AI 本地开发流程](./spec/workflows/ai-local-development-workflow.md)
@@ -69,10 +70,10 @@ export PATH="$HOME/.local/bin:$PATH"
69
70
 
70
71
  ```bash
71
72
  # 从 Releases 下载 .deb 包
72
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc_0.5.6_amd64.deb
73
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc_0.5.9_amd64.deb
73
74
 
74
75
  # 安装
75
- sudo dpkg -i gc_0.5.6_amd64.deb
76
+ sudo dpkg -i gc_0.5.9_amd64.deb
76
77
  ```
77
78
 
78
79
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -81,10 +82,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
81
82
 
82
83
  ```bash
83
84
  # 从 Releases 下载 .rpm 包
84
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc-0.5.6-1.x86_64.rpm
85
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc-0.5.9-1.x86_64.rpm
85
86
 
86
87
  # 安装
87
- sudo rpm -i gc-0.5.6-1.x86_64.rpm
88
+ sudo rpm -i gc-0.5.9-1.x86_64.rpm
88
89
  ```
89
90
 
90
91
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -100,7 +101,7 @@ source .venv/bin/activate # Linux/macOS
100
101
  # .venv\Scripts\activate # Windows
101
102
 
102
103
  # 安装(一行命令)
103
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gitcode_cli-0.5.6-py3-none-any.whl
104
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gitcode_cli-0.5.9-py3-none-any.whl
104
105
 
105
106
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
106
107
  gitcode version
@@ -110,6 +111,12 @@ gitcode version
110
111
  - wheel 会同时安装 `gc` 和 `gitcode` 两个命令入口,功能相同。
111
112
  - DEB/RPM 包也会同时安装 `gc` 和 `gitcode`;Linux 上二者功能相同。
112
113
  - Windows PowerShell 预置 `gc` 作为 `Get-Content` 别名;如果 `gc version` 被解析为读取文件,请改用 `gitcode version`、`gc.exe version` 或 `python -m gc_cli version`。
114
+ - Windows PowerShell 中通过 `--body-file -` / `--comment-file -` 管道传入中文或其他非 ASCII 正文时,推荐使用 UTF-8 文件;如果必须直接管道,先设置 `$OutputEncoding = [System.Text.UTF8Encoding]::new($false)`。CLI 会拦截疑似已被 PowerShell 损坏成 `???` 的输入并提示正确用法。
115
+
116
+ ```powershell
117
+ Set-Content -Path body.md -Value "中文正文" -Encoding UTF8
118
+ gitcode issue create -R owner/repo --title "标题" --body-file body.md
119
+ ```
113
120
 
114
121
  ### PyPI(备选)
115
122
 
@@ -126,31 +133,27 @@ pip install gitcode-cli
126
133
  gitcode version
127
134
  ```
128
135
 
129
- ### 预编译二进制文件
136
+ ### Linux 二进制文件
130
137
 
131
- 从 Release Assets 直接下载对应平台的二进制文件:
138
+ 从 Release Assets 直接下载 Linux 二进制文件:
132
139
 
133
140
  | 平台 | 文件 |
134
141
  |------|------|
135
- | Linux x64 | `gc_<version>_linux_amd64.tar.gz` |
136
- | Linux ARM64 | `gc_<version>_linux_arm64.tar.gz` |
137
- | macOS Intel | `gc_<version>_darwin_amd64.tar.gz` |
138
- | macOS Apple Silicon | `gc_<version>_darwin_arm64.tar.gz` |
139
- | Windows x64 | `gc_<version>_windows_amd64.zip` |
142
+ | Linux x64 | `gc_linux_amd64` |
143
+ | Linux ARM64 | `gc_linux_arm64` |
140
144
 
141
145
  下载地址: https://gitcode.com/gitcode-cli/cli/releases
142
146
 
143
- 解压后将二进制文件放到 PATH 目录:
147
+ 下载后赋予可执行权限,并放到 PATH 目录:
144
148
 
145
149
  ```bash
146
- # Linux/macOS
147
- tar -xzf gc_*.tar.gz
148
- mv gc ~/.local/bin/
149
-
150
- # Windows
151
- # 解压 zip 文件后,将 gc.exe 放到 PATH 目录
150
+ chmod +x gc_linux_amd64
151
+ mv gc_linux_amd64 ~/.local/bin/gc
152
+ gc version
152
153
  ```
153
154
 
155
+ Windows 和 macOS 用户建议使用上方 wheel 包;wheel 内置 Linux、macOS 和 Windows 二进制,并同时提供 `gc` 与 `gitcode` 两个命令入口。
156
+
154
157
  ### 规划中的安装方式
155
158
 
156
159
  以下安装方式正在开发中:
@@ -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.5.6"
7
+ __version__ = "0.5.9"
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.5.6
3
+ Version: 0.5.9
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>
@@ -33,7 +33,7 @@ Dynamic: license-file
33
33
 
34
34
  [![Go Version](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat&logo=go)](https://golang.org)
35
35
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
36
- [![Release](https://img.shields.io/badge/Release-v0.5.6-blue)](https://gitcode.com/gitcode-cli/cli/releases)
36
+ [![Release](https://img.shields.io/badge/Release-v0.5.9-blue)](https://gitcode.com/gitcode-cli/cli/releases)
37
37
 
38
38
  GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验。
39
39
 
@@ -55,6 +55,7 @@ GitCode 命令行工具,为 GitCode 用户提供便捷的命令行操作体验
55
55
  - [回归说明](./docs/REGRESSION.md)
56
56
  - [打包说明](./docs/PACKAGING.md)
57
57
  - [AI 操作指南(外部项目)](./docs/AI-GUIDE.md)
58
+ - [应用案例库](./Example/index.md)
58
59
  - [开发规范](./spec/README.md)
59
60
  - [真相源矩阵](./spec/governance/source-of-truth-matrix.md)
60
61
  - [AI 本地开发流程](./spec/workflows/ai-local-development-workflow.md)
@@ -98,10 +99,10 @@ export PATH="$HOME/.local/bin:$PATH"
98
99
 
99
100
  ```bash
100
101
  # 从 Releases 下载 .deb 包
101
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc_0.5.6_amd64.deb
102
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc_0.5.9_amd64.deb
102
103
 
103
104
  # 安装
104
- sudo dpkg -i gc_0.5.6_amd64.deb
105
+ sudo dpkg -i gc_0.5.9_amd64.deb
105
106
  ```
106
107
 
107
108
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -110,10 +111,10 @@ DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
110
111
 
111
112
  ```bash
112
113
  # 从 Releases 下载 .rpm 包
113
- wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gc-0.5.6-1.x86_64.rpm
114
+ wget https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gc-0.5.9-1.x86_64.rpm
114
115
 
115
116
  # 安装
116
- sudo rpm -i gc-0.5.6-1.x86_64.rpm
117
+ sudo rpm -i gc-0.5.9-1.x86_64.rpm
117
118
  ```
118
119
 
119
120
  DEB/RPM packages install both `gc` and `gitcode`; on Linux they are equivalent.
@@ -129,7 +130,7 @@ source .venv/bin/activate # Linux/macOS
129
130
  # .venv\Scripts\activate # Windows
130
131
 
131
132
  # 安装(一行命令)
132
- pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.6/gitcode_cli-0.5.6-py3-none-any.whl
133
+ pip install https://gitcode.com/gitcode-cli/cli/releases/download/v0.5.9/gitcode_cli-0.5.9-py3-none-any.whl
133
134
 
134
135
  # Windows PowerShell 中推荐使用 gitcode,避免 gc 被内置 Get-Content 别名覆盖
135
136
  gitcode version
@@ -139,6 +140,12 @@ gitcode version
139
140
  - wheel 会同时安装 `gc` 和 `gitcode` 两个命令入口,功能相同。
140
141
  - DEB/RPM 包也会同时安装 `gc` 和 `gitcode`;Linux 上二者功能相同。
141
142
  - Windows PowerShell 预置 `gc` 作为 `Get-Content` 别名;如果 `gc version` 被解析为读取文件,请改用 `gitcode version`、`gc.exe version` 或 `python -m gc_cli version`。
143
+ - Windows PowerShell 中通过 `--body-file -` / `--comment-file -` 管道传入中文或其他非 ASCII 正文时,推荐使用 UTF-8 文件;如果必须直接管道,先设置 `$OutputEncoding = [System.Text.UTF8Encoding]::new($false)`。CLI 会拦截疑似已被 PowerShell 损坏成 `???` 的输入并提示正确用法。
144
+
145
+ ```powershell
146
+ Set-Content -Path body.md -Value "中文正文" -Encoding UTF8
147
+ gitcode issue create -R owner/repo --title "标题" --body-file body.md
148
+ ```
142
149
 
143
150
  ### PyPI(备选)
144
151
 
@@ -155,31 +162,27 @@ pip install gitcode-cli
155
162
  gitcode version
156
163
  ```
157
164
 
158
- ### 预编译二进制文件
165
+ ### Linux 二进制文件
159
166
 
160
- 从 Release Assets 直接下载对应平台的二进制文件:
167
+ 从 Release Assets 直接下载 Linux 二进制文件:
161
168
 
162
169
  | 平台 | 文件 |
163
170
  |------|------|
164
- | Linux x64 | `gc_<version>_linux_amd64.tar.gz` |
165
- | Linux ARM64 | `gc_<version>_linux_arm64.tar.gz` |
166
- | macOS Intel | `gc_<version>_darwin_amd64.tar.gz` |
167
- | macOS Apple Silicon | `gc_<version>_darwin_arm64.tar.gz` |
168
- | Windows x64 | `gc_<version>_windows_amd64.zip` |
171
+ | Linux x64 | `gc_linux_amd64` |
172
+ | Linux ARM64 | `gc_linux_arm64` |
169
173
 
170
174
  下载地址: https://gitcode.com/gitcode-cli/cli/releases
171
175
 
172
- 解压后将二进制文件放到 PATH 目录:
176
+ 下载后赋予可执行权限,并放到 PATH 目录:
173
177
 
174
178
  ```bash
175
- # Linux/macOS
176
- tar -xzf gc_*.tar.gz
177
- mv gc ~/.local/bin/
178
-
179
- # Windows
180
- # 解压 zip 文件后,将 gc.exe 放到 PATH 目录
179
+ chmod +x gc_linux_amd64
180
+ mv gc_linux_amd64 ~/.local/bin/gc
181
+ gc version
181
182
  ```
182
183
 
184
+ Windows 和 macOS 用户建议使用上方 wheel 包;wheel 内置 Linux、macOS 和 Windows 二进制,并同时提供 `gc` 与 `gitcode` 两个命令入口。
185
+
183
186
  ### 规划中的安装方式
184
187
 
185
188
  以下安装方式正在开发中:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gitcode-cli"
7
- version = "0.5.6"
7
+ version = "0.5.9"
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