itcpr 2.1.2__tar.gz → 2.1.3__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.
- {itcpr-2.1.2/itcpr.egg-info → itcpr-2.1.3}/PKG-INFO +1 -1
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/__init__.py +1 -1
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/cli.py +9 -4
- {itcpr-2.1.2 → itcpr-2.1.3/itcpr.egg-info}/PKG-INFO +1 -1
- {itcpr-2.1.2 → itcpr-2.1.3}/pyproject.toml +1 -1
- {itcpr-2.1.2 → itcpr-2.1.3}/setup.py +1 -1
- {itcpr-2.1.2 → itcpr-2.1.3}/LICENSE +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/MANIFEST.in +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/README.md +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/api.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/auth.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/config.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/gitops.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/storage.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/sync.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr/utils.py +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr.egg-info/SOURCES.txt +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr.egg-info/dependency_links.txt +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr.egg-info/entry_points.txt +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr.egg-info/requires.txt +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/itcpr.egg-info/top_level.txt +0 -0
- {itcpr-2.1.2 → itcpr-2.1.3}/setup.cfg +0 -0
|
@@ -79,7 +79,9 @@ def status(ctx):
|
|
|
79
79
|
click.echo(f"\n=== Assigned Repositories ({len(repos)}) ===")
|
|
80
80
|
if repos:
|
|
81
81
|
for repo in repos:
|
|
82
|
-
|
|
82
|
+
full_name = repo.get('full_name', '')
|
|
83
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
84
|
+
click.echo(f" - {repo_name}")
|
|
83
85
|
else:
|
|
84
86
|
click.echo(" No repositories assigned")
|
|
85
87
|
|
|
@@ -133,7 +135,8 @@ def repos(ctx):
|
|
|
133
135
|
click.echo(f"\nAssigned Repositories ({len(assigned_repos)}):\n")
|
|
134
136
|
|
|
135
137
|
for repo in assigned_repos:
|
|
136
|
-
|
|
138
|
+
full_name = repo.get('full_name', '')
|
|
139
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
137
140
|
full_name = repo.get("full_name", repo_name)
|
|
138
141
|
local_repo = local_repos.get(repo_name)
|
|
139
142
|
|
|
@@ -178,7 +181,9 @@ def clone(ctx, repo, path):
|
|
|
178
181
|
|
|
179
182
|
# Find repo by name or full_name
|
|
180
183
|
for r in assigned_repos:
|
|
181
|
-
|
|
184
|
+
full_name = r.get('full_name', '')
|
|
185
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else r.get('name', 'N/A')
|
|
186
|
+
if repo_name == repo or full_name == repo:
|
|
182
187
|
repo_info = r
|
|
183
188
|
break
|
|
184
189
|
|
|
@@ -186,8 +191,8 @@ def clone(ctx, repo, path):
|
|
|
186
191
|
click.echo(f"Repository '{repo}' is not assigned to this device.")
|
|
187
192
|
return
|
|
188
193
|
|
|
189
|
-
repo_name = repo_info.get("name")
|
|
190
194
|
full_name = repo_info.get("full_name")
|
|
195
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else repo_info.get('name', 'N/A')
|
|
191
196
|
remote_url = repo_info.get("clone_url") or repo_info.get("ssh_url")
|
|
192
197
|
|
|
193
198
|
if not remote_url:
|
|
@@ -9,7 +9,7 @@ long_description = readme_file.read_text() if readme_file.exists() else ""
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="itcpr",
|
|
12
|
-
version="2.1.
|
|
12
|
+
version="2.1.3",
|
|
13
13
|
description="CLI tool for syncing GitHub repositories from ITCPR Cloud",
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
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
|