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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.1.8
3
+ Version: 2.1.9
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.8"
3
+ __version__ = "2.1.9"
4
4
 
@@ -83,9 +83,17 @@ def status(ctx):
83
83
 
84
84
  # Get repos
85
85
  repos = api.get_repos()
86
- click.echo(f"\n=== Your Repositories ({len(repos)}) ===")
87
- if repos:
88
- for repo in repos:
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
- click.echo(f"\n=== Local Repositories ({len(local_repos)}) ===")
98
- if local_repos:
99
- for repo in local_repos:
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 assigned_repos:
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(assigned_repos)}):\n")
160
+ click.echo(f"\nYour Repositories ({len(filtered_assigned_repos)}):\n")
143
161
 
144
- for repo in assigned_repos:
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.1.8
3
+ Version: 2.1.9
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.8"
7
+ version = "2.1.9"
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.8",
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