Display list of existing projects.
(projects: list[tuple[str, Path]])
| 94 | |
| 95 | |
| 96 | def display_projects(projects: list[tuple[str, Path]]) -> None: |
| 97 | """Display list of existing projects.""" |
| 98 | print("\n" + "-" * 40) |
| 99 | print(" Existing Projects") |
| 100 | print("-" * 40) |
| 101 | |
| 102 | for i, (name, path) in enumerate(projects, 1): |
| 103 | print(f" [{i}] {name}") |
| 104 | print(f" {path}") |
| 105 | |
| 106 | print("\n [b] Back to main menu") |
| 107 | print() |
| 108 | |
| 109 | |
| 110 | def get_project_choice(projects: list[tuple[str, Path]]) -> tuple[str, Path] | None: |