itcpr 2.1.6__tar.gz → 2.1.8__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.8}/PKG-INFO +2 -2
- {itcpr-2.1.6 → itcpr-2.1.8}/README.md +1 -1
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/__init__.py +1 -1
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/cli.py +7 -8
- {itcpr-2.1.6 → itcpr-2.1.8/itcpr.egg-info}/PKG-INFO +2 -2
- {itcpr-2.1.6 → itcpr-2.1.8}/pyproject.toml +1 -1
- {itcpr-2.1.6 → itcpr-2.1.8}/setup.py +1 -1
- {itcpr-2.1.6 → itcpr-2.1.8}/LICENSE +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/MANIFEST.in +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/api.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/auth.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/config.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/gitops.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/service.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/storage.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/sync.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr/utils.py +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr.egg-info/SOURCES.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr.egg-info/dependency_links.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr.egg-info/entry_points.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr.egg-info/requires.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/itcpr.egg-info/top_level.txt +0 -0
- {itcpr-2.1.6 → itcpr-2.1.8}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itcpr
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.8
|
|
4
4
|
Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
|
|
5
5
|
Home-page: https://itcpr.org
|
|
6
6
|
Author: ITCPR
|
|
@@ -288,7 +288,7 @@ Revokes device token and clears local metadata.
|
|
|
288
288
|
Shows:
|
|
289
289
|
- Logged-in user information
|
|
290
290
|
- Device ID
|
|
291
|
-
-
|
|
291
|
+
- Your repositories
|
|
292
292
|
- Local repositories with sync status
|
|
293
293
|
|
|
294
294
|
### `itcpr repos`
|
|
@@ -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()
|
|
@@ -139,18 +139,17 @@ def repos(ctx):
|
|
|
139
139
|
click.echo("No repositories assigned to this device.")
|
|
140
140
|
return
|
|
141
141
|
|
|
142
|
-
click.echo(f"\
|
|
142
|
+
click.echo(f"\nYour Repositories ({len(assigned_repos)}):\n")
|
|
143
143
|
|
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itcpr
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.8
|
|
4
4
|
Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
|
|
5
5
|
Home-page: https://itcpr.org
|
|
6
6
|
Author: ITCPR
|
|
@@ -288,7 +288,7 @@ Revokes device token and clears local metadata.
|
|
|
288
288
|
Shows:
|
|
289
289
|
- Logged-in user information
|
|
290
290
|
- Device ID
|
|
291
|
-
-
|
|
291
|
+
- Your repositories
|
|
292
292
|
- Local repositories with sync status
|
|
293
293
|
|
|
294
294
|
### `itcpr repos`
|
|
@@ -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.8",
|
|
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
|