itcpr 2.1.8__tar.gz → 2.1.9__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.8/itcpr.egg-info → itcpr-2.1.9}/PKG-INFO +1 -1
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/__init__.py +1 -1
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/cli.py +27 -9
- {itcpr-2.1.8 → itcpr-2.1.9/itcpr.egg-info}/PKG-INFO +1 -1
- {itcpr-2.1.8 → itcpr-2.1.9}/pyproject.toml +1 -1
- {itcpr-2.1.8 → itcpr-2.1.9}/setup.py +1 -1
- {itcpr-2.1.8 → itcpr-2.1.9}/LICENSE +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/MANIFEST.in +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/README.md +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/api.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/auth.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/config.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/gitops.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/service.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/storage.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/sync.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr/utils.py +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr.egg-info/SOURCES.txt +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr.egg-info/dependency_links.txt +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr.egg-info/entry_points.txt +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr.egg-info/requires.txt +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/itcpr.egg-info/top_level.txt +0 -0
- {itcpr-2.1.8 → itcpr-2.1.9}/setup.cfg +0 -0
|
@@ -83,9 +83,17 @@ def status(ctx):
|
|
|
83
83
|
|
|
84
84
|
# Get repos
|
|
85
85
|
repos = api.get_repos()
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
# Filter out repos where the repo name (not full_name) starts with "."
|
|
87
|
+
filtered_repos = []
|
|
88
|
+
for repo in repos:
|
|
89
|
+
full_name = repo.get('full_name', '')
|
|
90
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
91
|
+
if not repo_name.startswith('.'):
|
|
92
|
+
filtered_repos.append(repo)
|
|
93
|
+
|
|
94
|
+
click.echo(f"\n=== Your Repositories ({len(filtered_repos)}) ===")
|
|
95
|
+
if filtered_repos:
|
|
96
|
+
for repo in filtered_repos:
|
|
89
97
|
full_name = repo.get('full_name', '')
|
|
90
98
|
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
91
99
|
click.echo(f" - {repo_name}")
|
|
@@ -94,9 +102,11 @@ def status(ctx):
|
|
|
94
102
|
|
|
95
103
|
# Get local repos
|
|
96
104
|
local_repos = storage.list_repos()
|
|
97
|
-
|
|
98
|
-
if
|
|
99
|
-
|
|
105
|
+
# Filter out repos that start with "."
|
|
106
|
+
filtered_local_repos = [r for r in local_repos if not r.get('name', '').startswith('.')]
|
|
107
|
+
click.echo(f"\n=== Local Repositories ({len(filtered_local_repos)}) ===")
|
|
108
|
+
if filtered_local_repos:
|
|
109
|
+
for repo in filtered_local_repos:
|
|
100
110
|
sync_mode = repo.get("sync_mode", "manual")
|
|
101
111
|
last_sync = repo.get("last_sync", "Never")
|
|
102
112
|
click.echo(f" - {repo['name']}")
|
|
@@ -132,16 +142,24 @@ def repos(ctx):
|
|
|
132
142
|
# Get assigned repos from API
|
|
133
143
|
assigned_repos = api.get_repos()
|
|
134
144
|
|
|
145
|
+
# Filter out repos where the repo name (not full_name) starts with "."
|
|
146
|
+
filtered_assigned_repos = []
|
|
147
|
+
for repo in assigned_repos:
|
|
148
|
+
full_name = repo.get('full_name', '')
|
|
149
|
+
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
150
|
+
if not repo_name.startswith('.'):
|
|
151
|
+
filtered_assigned_repos.append(repo)
|
|
152
|
+
|
|
135
153
|
# Get local repos
|
|
136
154
|
local_repos = {r["name"]: r for r in storage.list_repos()}
|
|
137
155
|
|
|
138
|
-
if not
|
|
156
|
+
if not filtered_assigned_repos:
|
|
139
157
|
click.echo("No repositories assigned to this device.")
|
|
140
158
|
return
|
|
141
159
|
|
|
142
|
-
click.echo(f"\nYour Repositories ({len(
|
|
160
|
+
click.echo(f"\nYour Repositories ({len(filtered_assigned_repos)}):\n")
|
|
143
161
|
|
|
144
|
-
for repo in
|
|
162
|
+
for repo in filtered_assigned_repos:
|
|
145
163
|
full_name = repo.get('full_name', '')
|
|
146
164
|
repo_name = full_name.split('/', 1)[-1] if full_name else repo.get('name', 'N/A')
|
|
147
165
|
local_repo = local_repos.get(repo_name)
|
|
@@ -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.9",
|
|
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
|