itcpr 2.1.6__tar.gz → 2.1.7__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.6/itcpr.egg-info → itcpr-2.1.7}/PKG-INFO +1 -1
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/__init__.py +1 -1
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/cli.py +6 -7
- {itcpr-2.1.6 → itcpr-2.1.7/itcpr.egg-info}/PKG-INFO +1 -1
- {itcpr-2.1.6 → itcpr-2.1.7}/pyproject.toml +1 -1
- {itcpr-2.1.6 → itcpr-2.1.7}/setup.py +1 -1
- {itcpr-2.1.6 → itcpr-2.1.7}/LICENSE +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/MANIFEST.in +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/README.md +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/api.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/auth.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/config.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/gitops.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/service.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/storage.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/sync.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr/utils.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr.egg-info/SOURCES.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr.egg-info/dependency_links.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr.egg-info/entry_points.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr.egg-info/requires.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/itcpr.egg-info/top_level.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.7}/setup.cfg +0 -0
|
@@ -81,16 +81,16 @@ def status(ctx):
|
|
|
81
81
|
click.echo(f"User: {me['user'].get('name', 'N/A')}")
|
|
82
82
|
click.echo(f"Email: {me['user'].get('email', 'N/A')}")
|
|
83
83
|
|
|
84
|
-
# Get
|
|
84
|
+
# Get repos
|
|
85
85
|
repos = api.get_repos()
|
|
86
|
-
click.echo(f"\n===
|
|
86
|
+
click.echo(f"\n=== Your Repositories ({len(repos)}) ===")
|
|
87
87
|
if repos:
|
|
88
88
|
for repo in repos:
|
|
89
89
|
full_name = repo.get('full_name', '')
|
|
90
90
|
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
91
91
|
click.echo(f" - {repo_name}")
|
|
92
92
|
else:
|
|
93
|
-
click.echo(" No repositories
|
|
93
|
+
click.echo(" No repositories")
|
|
94
94
|
|
|
95
95
|
# Get local repos
|
|
96
96
|
local_repos = storage.list_repos()
|
|
@@ -144,13 +144,12 @@ def repos(ctx):
|
|
|
144
144
|
for repo in assigned_repos:
|
|
145
145
|
full_name = repo.get('full_name', '')
|
|
146
146
|
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
147
|
-
full_name = repo.get("full_name", repo_name)
|
|
148
147
|
local_repo = local_repos.get(repo_name)
|
|
149
148
|
|
|
150
149
|
status_icon = "✓" if local_repo else "○"
|
|
151
150
|
status_text = "Cloned" if local_repo else "Not cloned"
|
|
152
151
|
|
|
153
|
-
click.echo(f"{status_icon} {
|
|
152
|
+
click.echo(f"{status_icon} {repo_name} - {status_text}")
|
|
154
153
|
if local_repo:
|
|
155
154
|
click.echo(f" Path: {local_repo['local_path']}")
|
|
156
155
|
if local_repo.get("last_sync"):
|
|
@@ -221,11 +220,11 @@ def clone(ctx, repo, path):
|
|
|
221
220
|
return
|
|
222
221
|
|
|
223
222
|
# Get GitHub token
|
|
224
|
-
click.echo(f"Getting GitHub token for {
|
|
223
|
+
click.echo(f"Getting GitHub token for {repo_name}...")
|
|
225
224
|
token = api.get_github_token(repo_name)
|
|
226
225
|
|
|
227
226
|
# Clone
|
|
228
|
-
click.echo(f"Cloning {
|
|
227
|
+
click.echo(f"Cloning {repo_name} to {local_path}...")
|
|
229
228
|
git = GitOps(local_path)
|
|
230
229
|
git.clone(remote_url, token)
|
|
231
230
|
|
|
@@ -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.7",
|
|
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
|
|
File without changes
|