gitcode-cli 0.5.9__tar.gz → 0.6.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.
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/LICENSE +27 -27
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/MANIFEST.in +3 -3
- {gitcode_cli-0.5.9/gitcode_cli.egg-info → gitcode_cli-0.6.0}/PKG-INFO +18 -1
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/README.md +360 -343
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/__init__.py +11 -11
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/__main__.py +9 -9
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/.gitkeep +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/gc-darwin-amd64 +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/gc-darwin-arm64 +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/gc-linux-amd64 +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/gc-linux-arm64 +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/bin/gc-windows-amd64.exe +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gc_cli/wrapper.py +102 -102
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0/gitcode_cli.egg-info}/PKG-INFO +18 -1
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gitcode_cli.egg-info/SOURCES.txt +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gitcode_cli.egg-info/dependency_links.txt +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gitcode_cli.egg-info/entry_points.txt +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/gitcode_cli.egg-info/top_level.txt +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/pyproject.toml +49 -49
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/setup.cfg +0 -0
- {gitcode_cli-0.5.9 → gitcode_cli-0.6.0}/tests/test_wrapper.py +72 -72
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 gitcode-cli contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
This project is inspired by and references the GitHub CLI (https://github.com/cli/cli),
|
|
26
|
-
which is also licensed under the MIT License.
|
|
27
|
-
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 gitcode-cli contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
This project is inspired by and references the GitHub CLI (https://github.com/cli/cli),
|
|
26
|
+
which is also licensed under the MIT License.
|
|
27
|
+
|
|
28
28
|
Copyright (c) 2019 GitHub, Inc.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
include README.md
|
|
2
|
-
include LICENSE
|
|
3
|
-
include pyproject.toml
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include pyproject.toml
|
|
4
4
|
recursive-include gc_cli/bin *
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.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>
|
|
@@ -254,6 +254,8 @@ gc auth status
|
|
|
254
254
|
# 结构化输出
|
|
255
255
|
gc issue list -R owner/repo --json
|
|
256
256
|
gc issue list -R owner/repo --format json
|
|
257
|
+
gc repo log -R owner/repo --file README.md --branch main --json
|
|
258
|
+
gc pr list -R owner/repo --paginate --per-page 100 --json
|
|
257
259
|
|
|
258
260
|
# 常规文本与表格
|
|
259
261
|
gc issue list -R owner/repo --format simple
|
|
@@ -265,6 +267,9 @@ gc issue list -R owner/repo --time-format relative
|
|
|
265
267
|
|
|
266
268
|
# 自定义模板输出
|
|
267
269
|
gc issue list -R owner/repo --template '{{range .}}#{{.Number}} {{.Title}}{{"\n"}}{{end}}'
|
|
270
|
+
|
|
271
|
+
# typed command 尚未覆盖的 API,可用 gc api 读取原始响应
|
|
272
|
+
gc api repos/owner/repo
|
|
268
273
|
```
|
|
269
274
|
|
|
270
275
|
`issue view` 和 `pr view` 的文本详情展示也会保持稳定布局,而 `--json` 仍然是面向机器调用的首选入口。
|
|
@@ -277,6 +282,9 @@ gc issue list -R owner/repo --template '{{range .}}#{{.Number}} {{.Title}}{{"\n"
|
|
|
277
282
|
# 查看仓库
|
|
278
283
|
gc repo view
|
|
279
284
|
|
|
285
|
+
# 查看文件提交历史
|
|
286
|
+
gc repo log -R owner/repo --file README.md --branch main
|
|
287
|
+
|
|
280
288
|
# 创建 Issue
|
|
281
289
|
gc issue create --title "Bug report" --body "Description"
|
|
282
290
|
|
|
@@ -286,6 +294,15 @@ gc issue list --state open
|
|
|
286
294
|
# 创建 PR
|
|
287
295
|
gc pr create --title "New feature" --base main
|
|
288
296
|
|
|
297
|
+
# 按提交信息反查 PR
|
|
298
|
+
gc pr list -R owner/repo --commit-message "fix login"
|
|
299
|
+
|
|
300
|
+
# 提交前检查 pre-commit 配置与本地环境
|
|
301
|
+
gc precommit check
|
|
302
|
+
|
|
303
|
+
# 调用 GitCode API 原始响应
|
|
304
|
+
gc api repos/owner/repo
|
|
305
|
+
|
|
289
306
|
# 查看认证状态
|
|
290
307
|
gc auth status
|
|
291
308
|
```
|