[IMP] script: sort clone list alphabetically

The erplibre root repo was appended last and hard to
find among 141 entries. Sort the list so repos are
easy to locate by name.

Generated by Claude Code 2.1.72 model claude-sonnet-4-6

Co-Authored-By: Mathieu Benoit <mathben@technolibre.ca>
This commit is contained in:
Mathieu Benoit 2026-03-11 03:47:59 -04:00
parent d7d72db7bc
commit 4ea143dd36

View file

@ -733,7 +733,7 @@ def print_clone_commands(git_path, projects, port):
if port != DEFAULT_PORT
else "git://localhost"
)
count = 0
lines = []
for project in projects:
repo_name = project["name"]
if not repo_name.endswith(".git"):
@ -743,12 +743,14 @@ def print_clone_commands(git_path, projects, port):
clone_path = project["path"]
if clone_path == ".":
clone_path = "erplibre"
print(
lines.append(
f" git clone {base_url}/{repo_name}"
f" {clone_path}"
)
count += 1
print(f"\nTotal: {count} repos available")
lines.sort()
for line in lines:
print(line)
print(f"\nTotal: {len(lines)} repos available")
print()