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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
5
  Home-page: https://itcpr.org
6
6
  Author: ITCPR
@@ -1,4 +1,4 @@
1
1
  """ITCPR Cloud CLI - CLI tool for syncing GitHub repositories."""
2
2
 
3
- __version__ = "2.1.2"
3
+ __version__ = "2.1.3"
4
4
 
@@ -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
- click.echo(f" - {repo.get('full_name', repo.get('name', 'N/A'))}")
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
- repo_name = repo.get("name")
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
- if r.get("name") == repo or r.get("full_name") == repo:
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
5
  Home-page: https://itcpr.org
6
6
  Author: ITCPR
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itcpr"
7
- version = "2.1.2"
7
+ version = "2.1.3"
8
8
  description = "CLI tool for syncing GitHub repositories from ITCPR Cloud"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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.2",
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