gitwise-cli 0.35.1__py3-none-any.whl → 0.36.0__py3-none-any.whl
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.
- gitwise/__init__.py +1 -1
- gitwise/_cli_dispatch.py +0 -1
- gitwise/_cli_parser.py +2 -3
- gitwise/_i18n_data.json +6 -6
- gitwise/clean.py +0 -6
- gitwise/share/schemas/v1/input/clean.json +0 -4
- gitwise/update.py +32 -6
- {gitwise_cli-0.35.1.dist-info → gitwise_cli-0.36.0.dist-info}/METADATA +1 -1
- {gitwise_cli-0.35.1.dist-info → gitwise_cli-0.36.0.dist-info}/RECORD +12 -12
- {gitwise_cli-0.35.1.dist-info → gitwise_cli-0.36.0.dist-info}/WHEEL +0 -0
- {gitwise_cli-0.35.1.dist-info → gitwise_cli-0.36.0.dist-info}/entry_points.txt +0 -0
- {gitwise_cli-0.35.1.dist-info → gitwise_cli-0.36.0.dist-info}/licenses/LICENSE +0 -0
gitwise/__init__.py
CHANGED
gitwise/_cli_dispatch.py
CHANGED
gitwise/_cli_parser.py
CHANGED
|
@@ -157,16 +157,15 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
157
157
|
p.add_argument("--diff", action="store_true")
|
|
158
158
|
p.add_argument("--max-commits", type=int, default=10, dest="max_commits")
|
|
159
159
|
|
|
160
|
-
p = sub.add_parser("snapshot", help="generate
|
|
160
|
+
p = sub.add_parser("snapshot", help="generate agent git snapshot", parents=[parent])
|
|
161
161
|
|
|
162
162
|
p = sub.add_parser(
|
|
163
163
|
"clean",
|
|
164
|
-
help="clean up stale branches
|
|
164
|
+
help="clean up stale branches",
|
|
165
165
|
aliases=["branch-clean"],
|
|
166
166
|
parents=[parent],
|
|
167
167
|
)
|
|
168
168
|
p.add_argument("--branches", action="store_true")
|
|
169
|
-
p.add_argument("--refs", action="store_true")
|
|
170
169
|
p.add_argument("--dry-run", action="store_true")
|
|
171
170
|
p.add_argument("--yes", "-y", action="store_true")
|
|
172
171
|
|
gitwise/_i18n_data.json
CHANGED
|
@@ -151,13 +151,9 @@
|
|
|
151
151
|
"es": "gitwise clean --branches --dry-run",
|
|
152
152
|
"en": "gitwise clean --branches --dry-run"
|
|
153
153
|
},
|
|
154
|
-
"clean_refs_not_implemented": {
|
|
155
|
-
"es": "'clean --refs' no está implementado",
|
|
156
|
-
"en": "'clean --refs' is not implemented"
|
|
157
|
-
},
|
|
158
154
|
"clean_specify_flag": {
|
|
159
|
-
"es": "especifica --branches
|
|
160
|
-
"en": "specify --branches
|
|
155
|
+
"es": "especifica --branches",
|
|
156
|
+
"en": "specify --branches"
|
|
161
157
|
},
|
|
162
158
|
"clean_to_delete": {
|
|
163
159
|
"es": "para eliminar: gitwise clean --branches --yes",
|
|
@@ -2071,6 +2067,10 @@
|
|
|
2071
2067
|
"es": "ejecutaría: git pull --ff-only en {dir}",
|
|
2072
2068
|
"en": "would run: git pull --ff-only in {dir}"
|
|
2073
2069
|
},
|
|
2070
|
+
"update_deprecation_hint": {
|
|
2071
|
+
"es": "update esta deprecado; usa `brew upgrade gitwise` para Homebrew o `uv tool upgrade gitwise-cli` para instalaciones con uv tool",
|
|
2072
|
+
"en": "update is deprecated; use `brew upgrade gitwise` for Homebrew or `uv tool upgrade gitwise-cli` for uv tool installations"
|
|
2073
|
+
},
|
|
2074
2074
|
"updated_git_conventions": {
|
|
2075
2075
|
"es": "actualizado: {file} (convenciones git agregadas)",
|
|
2076
2076
|
"en": "updated: {file} (git conventions added)"
|
gitwise/clean.py
CHANGED
|
@@ -59,7 +59,6 @@ def _categorize(
|
|
|
59
59
|
def run_clean(
|
|
60
60
|
*,
|
|
61
61
|
branches: bool = False,
|
|
62
|
-
refs: bool = False,
|
|
63
62
|
dry_run: bool = False,
|
|
64
63
|
yes: bool = False,
|
|
65
64
|
as_json: bool = False,
|
|
@@ -70,11 +69,6 @@ def run_clean(
|
|
|
70
69
|
user-cancelled), 1 on delete failures or missing flag, 2 when
|
|
71
70
|
``--json`` is used without ``--yes``.
|
|
72
71
|
"""
|
|
73
|
-
if refs:
|
|
74
|
-
return report_error(
|
|
75
|
-
"clean", as_json=as_json, msg=t("clean_refs_not_implemented"), code="not_implemented"
|
|
76
|
-
)
|
|
77
|
-
|
|
78
72
|
if not branches:
|
|
79
73
|
return report_error(
|
|
80
74
|
"clean", as_json=as_json, msg=t("clean_specify_flag"), code="clean_specify_flag"
|
gitwise/update.py
CHANGED
|
@@ -5,13 +5,16 @@ from pathlib import Path
|
|
|
5
5
|
from gitwise.git import current_branch, has_upstream
|
|
6
6
|
from gitwise.git import run as git_run
|
|
7
7
|
from gitwise.i18n import t
|
|
8
|
-
from gitwise.output import error, info, print_dim, print_header, print_json, status
|
|
8
|
+
from gitwise.output import error, info, print_dim, print_header, print_json, status, warn
|
|
9
9
|
from gitwise.utils.json_envelope import error_envelope, ok_envelope
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
13
13
|
"""Entry point for the ``gitwise update`` command. Pulls the gitwise repo via git."""
|
|
14
14
|
install_dir = Path(__file__).parent.parent
|
|
15
|
+
upgrade_hint = t("update_deprecation_hint")
|
|
16
|
+
if not as_json:
|
|
17
|
+
warn(upgrade_hint)
|
|
15
18
|
if not (install_dir / ".git").is_dir():
|
|
16
19
|
if as_json:
|
|
17
20
|
print_json(
|
|
@@ -19,6 +22,7 @@ def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
|
19
22
|
"update",
|
|
20
23
|
error=t("update_requires_git_clone"),
|
|
21
24
|
code="update_requires_git_clone",
|
|
25
|
+
hint=upgrade_hint,
|
|
22
26
|
)
|
|
23
27
|
)
|
|
24
28
|
else:
|
|
@@ -26,7 +30,9 @@ def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
|
26
30
|
return 1
|
|
27
31
|
if dry_run:
|
|
28
32
|
if as_json:
|
|
29
|
-
print_json(
|
|
33
|
+
print_json(
|
|
34
|
+
ok_envelope("update", dry_run=True, dir=str(install_dir), hints=[upgrade_hint])
|
|
35
|
+
)
|
|
30
36
|
return 0
|
|
31
37
|
print_dim(t("update_dry_run", dir=str(install_dir)))
|
|
32
38
|
return 0
|
|
@@ -35,7 +41,15 @@ def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
|
35
41
|
msg = t("update_no_upstream", branch=branch)
|
|
36
42
|
hint = t("update_no_upstream_hint", branch=branch)
|
|
37
43
|
if as_json:
|
|
38
|
-
print_json(
|
|
44
|
+
print_json(
|
|
45
|
+
error_envelope(
|
|
46
|
+
"update",
|
|
47
|
+
error=msg,
|
|
48
|
+
code="no_upstream",
|
|
49
|
+
hint=hint,
|
|
50
|
+
hints=[upgrade_hint],
|
|
51
|
+
)
|
|
52
|
+
)
|
|
39
53
|
else:
|
|
40
54
|
error(msg, hint=hint)
|
|
41
55
|
return 1
|
|
@@ -45,7 +59,9 @@ def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
|
45
59
|
r = git_run(["pull", "--ff-only"], cwd=install_dir, check=False)
|
|
46
60
|
if r.returncode == 0 and r.stdout.strip() and r.stdout.strip() != "Already up to date.":
|
|
47
61
|
if as_json:
|
|
48
|
-
print_json(
|
|
62
|
+
print_json(
|
|
63
|
+
ok_envelope("update", updated=True, output=r.stdout.strip(), hints=[upgrade_hint])
|
|
64
|
+
)
|
|
49
65
|
return 0
|
|
50
66
|
for line in r.stdout.strip().splitlines():
|
|
51
67
|
info(line)
|
|
@@ -53,13 +69,23 @@ def run_update(*, dry_run: bool = False, as_json: bool = False) -> int:
|
|
|
53
69
|
if as_json:
|
|
54
70
|
print_json(
|
|
55
71
|
error_envelope(
|
|
56
|
-
"update",
|
|
72
|
+
"update",
|
|
73
|
+
error=r.stderr.strip() or t("error_updating"),
|
|
74
|
+
code="update_failed",
|
|
75
|
+
hint=upgrade_hint,
|
|
57
76
|
)
|
|
58
77
|
)
|
|
59
78
|
return 1
|
|
60
79
|
error(r.stderr.strip() or t("error_updating"))
|
|
61
80
|
return 1
|
|
62
81
|
elif as_json:
|
|
63
|
-
print_json(
|
|
82
|
+
print_json(
|
|
83
|
+
ok_envelope(
|
|
84
|
+
"update",
|
|
85
|
+
updated=False,
|
|
86
|
+
output=t("already_up_to_date"),
|
|
87
|
+
hints=[upgrade_hint],
|
|
88
|
+
)
|
|
89
|
+
)
|
|
64
90
|
return 0
|
|
65
91
|
return 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitwise-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.36.0
|
|
4
4
|
Summary: Python CLI for optimizing git workflows and Claude Code integration
|
|
5
5
|
Project-URL: Homepage, https://github.com/drzioner/gitwise
|
|
6
6
|
Project-URL: Repository, https://github.com/drzioner/gitwise
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
gitwise/__init__.py,sha256=
|
|
1
|
+
gitwise/__init__.py,sha256=bpe6bETHNo9s_UCdjwNZGETpTQYswITk8aZ6_kP76z4,432
|
|
2
2
|
gitwise/__main__.py,sha256=un7xnbcNDlKp3yBXw8tPKY6eFttldppCumYIEHFknE0,5224
|
|
3
3
|
gitwise/_cli_completions.py,sha256=TlVH42FLU6_1vpTpbxKp-i7r6B8yPtk_LZ3D2l8HMWI,6570
|
|
4
|
-
gitwise/_cli_dispatch.py,sha256=
|
|
4
|
+
gitwise/_cli_dispatch.py,sha256=v2NTEOLD4MLDuhfA48QvGNB2fdc1EvmmLNxiB2rXLuQ,19167
|
|
5
5
|
gitwise/_cli_introspection.py,sha256=gLraIn1AoWHv6QvOdsEPixbhXW2NVE0UyL_jqofetmk,11174
|
|
6
|
-
gitwise/_cli_parser.py,sha256=
|
|
6
|
+
gitwise/_cli_parser.py,sha256=C1TVkEldZXEP2kGGd5JsVBa7fTl8bdc_Sn6ybLeCKlg,19373
|
|
7
7
|
gitwise/_cli_setup_agents.py,sha256=ErDGdTVCx-b416LnkH5yZzHqYEiO2rkBvYtHDi59mW4,15328
|
|
8
|
-
gitwise/_i18n_data.json,sha256=
|
|
8
|
+
gitwise/_i18n_data.json,sha256=eq3QaiJ-6BBrkxgD750tKb_tmcnNHpf5X_kHpHhIJRA,71090
|
|
9
9
|
gitwise/_paths.py,sha256=VRkql9HQ5_OjwbpcX-18fwe_lMpuQffP4AiBV6suSFg,658
|
|
10
10
|
gitwise/_runtime_config.py,sha256=EF0NOlNNvEf9awRsfHr0Ma7MNgy4Fl3aPbLY9HEVEpQ,8350
|
|
11
11
|
gitwise/audit.py,sha256=644-WhyxelBS6lkSKvidQgOXGSs-UWwyWKfxphQ8PSE,11322
|
|
12
12
|
gitwise/branches.py,sha256=rCl0oV8Us1qTDlaHVHihlmTkQz-qmQL6tL4lg-ttj2w,7748
|
|
13
|
-
gitwise/clean.py,sha256=
|
|
13
|
+
gitwise/clean.py,sha256=uXkKFdG6gmSXxJit2be-lRQ9TiPkeN8D4se1PK4-V_c,6849
|
|
14
14
|
gitwise/commit.py,sha256=VmoDrf-yqFKqMi0gcl74RYS525gbnrdQhQSoy-Q3UKk,9714
|
|
15
15
|
gitwise/conflicts.py,sha256=eyTmqA4HEavn-rW7xCA3TSSaZq3VE5gmVH2BONM_Ah8,8502
|
|
16
16
|
gitwise/context.py,sha256=l3p-SSxxQNqYl1KUjl2yfX0q_bw2WhiorCf7_uh8fKM,6758
|
|
@@ -38,7 +38,7 @@ gitwise/summarize.py,sha256=SqTHBSxNUL1TG4hXMdBZnl-n1Q5AmH-7TJjAOwph7sA,7201
|
|
|
38
38
|
gitwise/sync.py,sha256=NG50yVJ36M0IWD5YoZ8bK0APJqETIjId-lcnsXI4JqU,8727
|
|
39
39
|
gitwise/tag.py,sha256=h2YCqXLR35zdst3EkAiSrOHe4m9OLCybENsA8ul0cjw,8281
|
|
40
40
|
gitwise/undo.py,sha256=YIGwthyfflYe3ZBR1PCdHmj7jVSDgmLHeG2-fMMuDY0,4641
|
|
41
|
-
gitwise/update.py,sha256=
|
|
41
|
+
gitwise/update.py,sha256=702S1bFiI2djx4JOm7nlk7SUHElFavBwuAlsQZJS0rw,3064
|
|
42
42
|
gitwise/worktree.py,sha256=gJprT1BMZ2r8DqUK-AO05ewAfxKcOIUP1Xq31eKv3_Q,10243
|
|
43
43
|
gitwise/setup_agents/__init__.py,sha256=P5IrjTxvT8kZUNNPqIyN9rMvlcNuyckFRyL02ZFuCic,1001
|
|
44
44
|
gitwise/setup_agents/exec.py,sha256=rT8KulX9T-R71e-HuFRYpbnceWb0IHXme2g0O78z2Sw,18303
|
|
@@ -93,7 +93,7 @@ gitwise/share/opencode/agents/gitwise.md.template,sha256=xNstnEA8ClIByBby1e5h2b9
|
|
|
93
93
|
gitwise/share/pi/skills/gitwise.md.template,sha256=xNstnEA8ClIByBby1e5h2b9tPVz48erG7GGQU55Qmgg,671
|
|
94
94
|
gitwise/share/schemas/v1/input/audit.json,sha256=VRggwo8B-qUPUdWnVlrnTKCRrHAFk6Z-ZbSZOA_tVas,907
|
|
95
95
|
gitwise/share/schemas/v1/input/branches.json,sha256=-TNmkH9KddkXeSGWWkksd7a64Kxk2zk5xSX86GEo6MM,1474
|
|
96
|
-
gitwise/share/schemas/v1/input/clean.json,sha256=
|
|
96
|
+
gitwise/share/schemas/v1/input/clean.json,sha256=e19pvkeuOxIg0n0siKsh1gDOCsHiNmlz-dsIoV_YAHg,1050
|
|
97
97
|
gitwise/share/schemas/v1/input/commands.json,sha256=cY-gQK_k-KpYd1xSeo-9QaD-H5-MQ0CydMEht4QAWg0,843
|
|
98
98
|
gitwise/share/schemas/v1/input/commit.json,sha256=cqWj9QBqREEkKCuHCH4GpN28Qtu14A9hmf_51gPgeEk,1616
|
|
99
99
|
gitwise/share/schemas/v1/input/completions.json,sha256=VoDfxoo97dM6LImank7-rz1e89ndc_LS_E69EAsLNO0,1229
|
|
@@ -148,8 +148,8 @@ gitwise/share/schemas/v1/output/tag.json,sha256=EPDFtSjrPXqUJfhf0j8ciCrEhjACq1VW
|
|
|
148
148
|
gitwise/share/schemas/v1/output/undo.json,sha256=eVCVYhGNnUF025ExbxHygaRzWybGCWFhp540U5JMk60,1467
|
|
149
149
|
gitwise/share/schemas/v1/output/update.json,sha256=Gm0ACHlpgRhOr1-qrV6fAXxi_Pcbv9zsfZ17_2btJVs,1411
|
|
150
150
|
gitwise/share/schemas/v1/output/worktree.json,sha256=55Z6wgv0BOV4YhAZAqLI0vgKXIBcw0Xspbn0N0tW0I4,1929
|
|
151
|
-
gitwise_cli-0.
|
|
152
|
-
gitwise_cli-0.
|
|
153
|
-
gitwise_cli-0.
|
|
154
|
-
gitwise_cli-0.
|
|
155
|
-
gitwise_cli-0.
|
|
151
|
+
gitwise_cli-0.36.0.dist-info/METADATA,sha256=lRx0msAOgrk0EPaiJA_OoQHoSjVNCYXS06pMo8e3bBE,7563
|
|
152
|
+
gitwise_cli-0.36.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
153
|
+
gitwise_cli-0.36.0.dist-info/entry_points.txt,sha256=m3_cGIC4VTGp7Wn5_s7NBPACs9Yiwdn4ZBWUBX4PMfQ,77
|
|
154
|
+
gitwise_cli-0.36.0.dist-info/licenses/LICENSE,sha256=vfJO-ThMtWhZOD9MsArN2yul1EJmxAXxfeGHKnEk9QQ,1063
|
|
155
|
+
gitwise_cli-0.36.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|