pygitcode 0.1.0__tar.gz → 0.1.1__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.
- {pygitcode-0.1.0 → pygitcode-0.1.1}/PKG-INFO +23 -3
- {pygitcode-0.1.0 → pygitcode-0.1.1}/README.md +23 -3
- {pygitcode-0.1.0 → pygitcode-0.1.1}/pyproject.toml +2 -1
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/cli.py +3 -3
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/commands/issue.py +9 -9
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/commands/pr.py +14 -15
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/PKG-INFO +23 -3
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/entry_points.txt +1 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/LICENSE +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/setup.cfg +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/__init__.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/cli_compat.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/client.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/commands/__init__.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/commands/auth.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/config.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/context.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/errors.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/formatters.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/repo.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/services/__init__.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/services/issues.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/services/pulls.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/gitcode_cli/utils.py +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/SOURCES.txt +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/dependency_links.txt +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/requires.txt +0 -0
- {pygitcode-0.1.0 → pygitcode-0.1.1}/src/pygitcode.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pygitcode
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A CLI tool for GitCode (api.gitcode.com), modeled after GitHub CLI.
|
|
5
5
|
Author-email: codeasier <825770651@qq.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -45,7 +45,7 @@ Dynamic: license-file
|
|
|
45
45
|
[](https://pypi.org/project/pygitcode/)
|
|
46
46
|
[](https://pypi.org/project/pygitcode/)
|
|
47
47
|
[](https://github.com/yourusername/pygitcode/blob/main/LICENSE)
|
|
48
|
-
[](https://github.com/yourusername/pygitcode/actions)
|
|
49
49
|
|
|
50
50
|
## Installation
|
|
51
51
|
|
|
@@ -53,7 +53,27 @@ Dynamic: license-file
|
|
|
53
53
|
pip install pygitcode
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
This exposes the `gc` command in your shell.
|
|
56
|
+
This exposes the `gc` (or `gitcode`) command in your shell.
|
|
57
|
+
|
|
58
|
+
## Windows PowerShell Users
|
|
59
|
+
|
|
60
|
+
On Windows PowerShell, `gc` is a built-in alias for the `Get-Content` cmdlet, which shadows the GitCode CLI. Use `gitcode` instead:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
gitcode auth login
|
|
64
|
+
gitcode issue list
|
|
65
|
+
gitcode pr list
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Alternatively, you can remove or override the alias in your PowerShell profile:
|
|
69
|
+
|
|
70
|
+
```powershell
|
|
71
|
+
# Remove for the current session
|
|
72
|
+
Remove-Item Alias:gc -Force
|
|
73
|
+
|
|
74
|
+
# Or persist the override in your profile
|
|
75
|
+
Set-Alias -Name gc -Value 'C:\Users\<user>\AppData\Roaming\Python\Python313\Scripts\gc.exe'
|
|
76
|
+
```
|
|
57
77
|
|
|
58
78
|
## Quick Start
|
|
59
79
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://pypi.org/project/pygitcode/)
|
|
6
6
|
[](https://pypi.org/project/pygitcode/)
|
|
7
7
|
[](https://github.com/yourusername/pygitcode/blob/main/LICENSE)
|
|
8
|
-
[](https://github.com/yourusername/pygitcode/actions)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -13,7 +13,27 @@
|
|
|
13
13
|
pip install pygitcode
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
This exposes the `gc` command in your shell.
|
|
16
|
+
This exposes the `gc` (or `gitcode`) command in your shell.
|
|
17
|
+
|
|
18
|
+
## Windows PowerShell Users
|
|
19
|
+
|
|
20
|
+
On Windows PowerShell, `gc` is a built-in alias for the `Get-Content` cmdlet, which shadows the GitCode CLI. Use `gitcode` instead:
|
|
21
|
+
|
|
22
|
+
```powershell
|
|
23
|
+
gitcode auth login
|
|
24
|
+
gitcode issue list
|
|
25
|
+
gitcode pr list
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Alternatively, you can remove or override the alias in your PowerShell profile:
|
|
29
|
+
|
|
30
|
+
```powershell
|
|
31
|
+
# Remove for the current session
|
|
32
|
+
Remove-Item Alias:gc -Force
|
|
33
|
+
|
|
34
|
+
# Or persist the override in your profile
|
|
35
|
+
Set-Alias -Name gc -Value 'C:\Users\<user>\AppData\Roaming\Python\Python313\Scripts\gc.exe'
|
|
36
|
+
```
|
|
17
37
|
|
|
18
38
|
## Quick Start
|
|
19
39
|
|
|
@@ -206,4 +226,4 @@ See [ROADMAP.md](ROADMAP.md) for planned features and current gaps.
|
|
|
206
226
|
|
|
207
227
|
## License
|
|
208
228
|
|
|
209
|
-
MIT
|
|
229
|
+
MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pygitcode"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "A CLI tool for GitCode (api.gitcode.com), modeled after GitHub CLI."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -53,6 +53,7 @@ Issues = "https://github.com/yourusername/pygitcode/issues"
|
|
|
53
53
|
|
|
54
54
|
[project.scripts]
|
|
55
55
|
gc = "gitcode_cli.cli:main"
|
|
56
|
+
gitcode = "gitcode_cli.cli:main"
|
|
56
57
|
|
|
57
58
|
[tool.setuptools.packages.find]
|
|
58
59
|
where = ["src"]
|
|
@@ -12,8 +12,8 @@ from .errors import GCError
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@click.group(context_settings={"help_option_names": ["-h", "--help"]})
|
|
15
|
-
@click.version_option(version=__version__, prog_name="
|
|
16
|
-
@click.option("--repo", "repo_name", "-R", help="
|
|
15
|
+
@click.version_option(version=__version__, prog_name="gitcode")
|
|
16
|
+
@click.option("--repo", "repo_name", "-R", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
17
17
|
@click.option("--token", hidden=True, help="Override authentication token.")
|
|
18
18
|
@click.pass_context
|
|
19
19
|
def main(ctx: click.Context, repo_name: str | None, token: str | None) -> None:
|
|
@@ -32,7 +32,7 @@ def process_result(*_args: object, **_kwargs: object) -> None:
|
|
|
32
32
|
|
|
33
33
|
@main.command("version")
|
|
34
34
|
def version_command() -> None:
|
|
35
|
-
click.echo(f"
|
|
35
|
+
click.echo(f"gitcode version {__version__}")
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
main.add_command(auth_group)
|
|
@@ -21,7 +21,7 @@ def issue_group() -> None:
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
@issue_group.command("list")
|
|
24
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
24
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
25
25
|
@click.option("-s", "--state")
|
|
26
26
|
@click.option("-l", "--label", "labels", multiple=True)
|
|
27
27
|
@click.option("-A", "--author")
|
|
@@ -81,7 +81,7 @@ def issue_list(
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
@issue_group.command("view")
|
|
84
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
84
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
85
85
|
@click.argument("identifier")
|
|
86
86
|
@click.option("-w", "--web", is_flag=True, help="Open the issue in the web browser.")
|
|
87
87
|
@click.option("-c", "--comments", is_flag=True, help="View issue comments.")
|
|
@@ -142,7 +142,7 @@ def issue_view(
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
@issue_group.command("create")
|
|
145
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
145
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
146
146
|
@click.option("-t", "--title")
|
|
147
147
|
@click.option("-b", "--body")
|
|
148
148
|
@click.option("-a", "--assignee")
|
|
@@ -188,7 +188,7 @@ def issue_create(
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
@issue_group.command("close")
|
|
191
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
191
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
192
192
|
@click.argument("identifier")
|
|
193
193
|
@click.pass_context
|
|
194
194
|
def issue_close(ctx: click.Context, repo_name: str | None, identifier: str) -> None:
|
|
@@ -205,7 +205,7 @@ def issue_close(ctx: click.Context, repo_name: str | None, identifier: str) -> N
|
|
|
205
205
|
|
|
206
206
|
|
|
207
207
|
@issue_group.command("comment")
|
|
208
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
208
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
209
209
|
@click.argument("identifier")
|
|
210
210
|
@click.option("-b", "--body")
|
|
211
211
|
@click.option("-F", "--body-file")
|
|
@@ -239,7 +239,7 @@ def issue_comment(
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
@issue_group.command("reopen")
|
|
242
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
242
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
243
243
|
@click.argument("identifier")
|
|
244
244
|
@click.pass_context
|
|
245
245
|
def issue_reopen(ctx: click.Context, repo_name: str | None, identifier: str) -> None:
|
|
@@ -256,7 +256,7 @@ def issue_reopen(ctx: click.Context, repo_name: str | None, identifier: str) ->
|
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
@issue_group.command("edit")
|
|
259
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
259
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
260
260
|
@click.argument("identifier")
|
|
261
261
|
@click.option("-t", "--title")
|
|
262
262
|
@click.option("-b", "--body")
|
|
@@ -303,7 +303,7 @@ def issue_edit(
|
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
@issue_group.command("delete")
|
|
306
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
306
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
307
307
|
@click.argument("identifier")
|
|
308
308
|
@click.confirmation_option(prompt="Are you sure you want to delete this issue?")
|
|
309
309
|
@click.pass_context
|
|
@@ -321,7 +321,7 @@ def issue_delete(ctx: click.Context, repo_name: str | None, identifier: str) ->
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
@issue_group.command("status")
|
|
324
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
324
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
325
325
|
@click.pass_context
|
|
326
326
|
def issue_status(ctx: click.Context, repo_name: str | None) -> None:
|
|
327
327
|
app = ctx.obj["app"]
|
|
@@ -24,7 +24,7 @@ def pr_group() -> None:
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
@pr_group.command("list")
|
|
27
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
27
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
28
28
|
@click.option("-s", "--state")
|
|
29
29
|
@click.option("-A", "--author")
|
|
30
30
|
@click.option("-B", "--base")
|
|
@@ -93,7 +93,7 @@ def pr_list(
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
@pr_group.command("view")
|
|
96
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
96
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
97
97
|
@click.argument("identifier", required=False)
|
|
98
98
|
@click.option("-w", "--web", is_flag=True, help="Open the pull request in the web browser.")
|
|
99
99
|
@click.option("--json", "json_fields", help="Output JSON. Optionally specify comma-separated fields.")
|
|
@@ -129,7 +129,7 @@ def pr_view(
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
@pr_group.command("create")
|
|
132
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
132
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
133
133
|
@click.option("-t", "--title")
|
|
134
134
|
@click.option("-b", "--body")
|
|
135
135
|
@click.option("-F", "--body-file")
|
|
@@ -228,7 +228,7 @@ def pr_create(
|
|
|
228
228
|
|
|
229
229
|
|
|
230
230
|
@pr_group.command("close")
|
|
231
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
231
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
232
232
|
@click.argument("identifier", required=False)
|
|
233
233
|
@click.option("-c", "--comment")
|
|
234
234
|
@click.option("-d", "--delete-branch", is_flag=True, help="Delete the remote branch after closing.")
|
|
@@ -259,7 +259,7 @@ def pr_close(
|
|
|
259
259
|
|
|
260
260
|
|
|
261
261
|
@pr_group.command("merge")
|
|
262
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
262
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
263
263
|
@click.argument("identifier", required=False)
|
|
264
264
|
@click.option("-m", "--merge", "merge_mode", flag_value="merge")
|
|
265
265
|
@click.option("-s", "--squash", "merge_mode", flag_value="squash")
|
|
@@ -277,7 +277,7 @@ def pr_merge(ctx: click.Context, repo_name: str | None, identifier: str | None,
|
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
@pr_group.command("comment")
|
|
280
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
280
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
281
281
|
@click.argument("identifier", required=False)
|
|
282
282
|
@click.option("-b", "--body")
|
|
283
283
|
@click.option("--path")
|
|
@@ -303,7 +303,7 @@ def pr_comment(
|
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
@pr_group.command("review")
|
|
306
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
306
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
307
307
|
@click.argument("identifier", required=False)
|
|
308
308
|
@click.option("-a", "--approve", is_flag=True, help="Approve the pull request. GitCode maps this to its review API.")
|
|
309
309
|
@click.option("--body")
|
|
@@ -350,7 +350,7 @@ def pr_review(
|
|
|
350
350
|
|
|
351
351
|
|
|
352
352
|
@pr_group.command("reopen")
|
|
353
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
353
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
354
354
|
@click.argument("identifier", required=False)
|
|
355
355
|
@click.pass_context
|
|
356
356
|
def pr_reopen(ctx: click.Context, repo_name: str | None, identifier: str | None) -> None:
|
|
@@ -365,7 +365,7 @@ def pr_reopen(ctx: click.Context, repo_name: str | None, identifier: str | None)
|
|
|
365
365
|
|
|
366
366
|
|
|
367
367
|
@pr_group.command("edit")
|
|
368
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
368
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
369
369
|
@click.argument("identifier", required=False)
|
|
370
370
|
@click.option("-t", "--title")
|
|
371
371
|
@click.option("-b", "--body")
|
|
@@ -419,7 +419,7 @@ def pr_edit(
|
|
|
419
419
|
|
|
420
420
|
|
|
421
421
|
@pr_group.command("diff")
|
|
422
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
422
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
423
423
|
@click.argument("identifier", required=False)
|
|
424
424
|
@click.pass_context
|
|
425
425
|
def pr_diff(ctx: click.Context, repo_name: str | None, identifier: str | None) -> None:
|
|
@@ -433,7 +433,7 @@ def pr_diff(ctx: click.Context, repo_name: str | None, identifier: str | None) -
|
|
|
433
433
|
|
|
434
434
|
|
|
435
435
|
@pr_group.command("checkout")
|
|
436
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
436
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
437
437
|
@click.argument("identifier", required=False)
|
|
438
438
|
@click.option("-b", "--branch", help="Local branch name to checkout into.")
|
|
439
439
|
@click.pass_context
|
|
@@ -457,7 +457,7 @@ def pr_checkout(ctx: click.Context, repo_name: str | None, identifier: str | Non
|
|
|
457
457
|
|
|
458
458
|
|
|
459
459
|
@pr_group.command("ready")
|
|
460
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
460
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
461
461
|
@click.argument("identifier", required=False)
|
|
462
462
|
@click.option("--undo", is_flag=True, help="Convert a pull request to draft.")
|
|
463
463
|
@click.pass_context
|
|
@@ -475,7 +475,7 @@ def pr_ready(ctx: click.Context, repo_name: str | None, identifier: str | None,
|
|
|
475
475
|
|
|
476
476
|
|
|
477
477
|
@pr_group.command("status")
|
|
478
|
-
@click.option("-R", "--repo", "repo_name", help="
|
|
478
|
+
@click.option("-R", "--repo", "repo_name", help="Repository in OWNER/REPO format (default: gitcode.com).")
|
|
479
479
|
@click.pass_context
|
|
480
480
|
def pr_status(ctx: click.Context, repo_name: str | None) -> None:
|
|
481
481
|
app = ctx.obj["app"]
|
|
@@ -483,8 +483,7 @@ def pr_status(ctx: click.Context, repo_name: str | None) -> None:
|
|
|
483
483
|
service = PullRequestService(app.client())
|
|
484
484
|
items = service.list(owner, repo, state="open")
|
|
485
485
|
click.echo(
|
|
486
|
-
f"Open pull requests in {owner}/{repo} "
|
|
487
|
-
"(GitCode API approximation -- user-specific filtering is not available)"
|
|
486
|
+
f"Open pull requests in {owner}/{repo} (GitCode API approximation -- user-specific filtering is not available)"
|
|
488
487
|
)
|
|
489
488
|
if items:
|
|
490
489
|
for item in items:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pygitcode
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A CLI tool for GitCode (api.gitcode.com), modeled after GitHub CLI.
|
|
5
5
|
Author-email: codeasier <825770651@qq.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -45,7 +45,7 @@ Dynamic: license-file
|
|
|
45
45
|
[](https://pypi.org/project/pygitcode/)
|
|
46
46
|
[](https://pypi.org/project/pygitcode/)
|
|
47
47
|
[](https://github.com/yourusername/pygitcode/blob/main/LICENSE)
|
|
48
|
-
[](https://github.com/yourusername/pygitcode/actions)
|
|
49
49
|
|
|
50
50
|
## Installation
|
|
51
51
|
|
|
@@ -53,7 +53,27 @@ Dynamic: license-file
|
|
|
53
53
|
pip install pygitcode
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
This exposes the `gc` command in your shell.
|
|
56
|
+
This exposes the `gc` (or `gitcode`) command in your shell.
|
|
57
|
+
|
|
58
|
+
## Windows PowerShell Users
|
|
59
|
+
|
|
60
|
+
On Windows PowerShell, `gc` is a built-in alias for the `Get-Content` cmdlet, which shadows the GitCode CLI. Use `gitcode` instead:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
gitcode auth login
|
|
64
|
+
gitcode issue list
|
|
65
|
+
gitcode pr list
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Alternatively, you can remove or override the alias in your PowerShell profile:
|
|
69
|
+
|
|
70
|
+
```powershell
|
|
71
|
+
# Remove for the current session
|
|
72
|
+
Remove-Item Alias:gc -Force
|
|
73
|
+
|
|
74
|
+
# Or persist the override in your profile
|
|
75
|
+
Set-Alias -Name gc -Value 'C:\Users\<user>\AppData\Roaming\Python\Python313\Scripts\gc.exe'
|
|
76
|
+
```
|
|
57
77
|
|
|
58
78
|
## Quick Start
|
|
59
79
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|