Get list of existing projects from registry. Returns: List of (name, path) tuples for registered projects that still exist.
()
| 63 | |
| 64 | |
| 65 | def get_existing_projects() -> list[tuple[str, Path]]: |
| 66 | """Get list of existing projects from registry. |
| 67 | |
| 68 | Returns: |
| 69 | List of (name, path) tuples for registered projects that still exist. |
| 70 | """ |
| 71 | registry = list_registered_projects() |
| 72 | projects = [] |
| 73 | |
| 74 | for name, info in registry.items(): |
| 75 | path = Path(info["path"]) |
| 76 | if path.exists(): |
| 77 | projects.append((name, path)) |
| 78 | |
| 79 | return sorted(projects, key=lambda x: x[0]) |
| 80 | |
| 81 | |
| 82 | def display_menu(projects: list[tuple[str, Path]]) -> None: |
no test coverage detected