MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / display_projects

Function display_projects

start.py:96–107  ·  view source on GitHub ↗

Display list of existing projects.

(projects: list[tuple[str, Path]])

Source from the content-addressed store, hash-verified

94
95
96def 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
110def get_project_choice(projects: list[tuple[str, Path]]) -> tuple[str, Path] | None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected