Main entry point.
()
| 420 | |
| 421 | |
| 422 | def main() -> None: |
| 423 | """Main entry point.""" |
| 424 | # Ensure we're in the right directory |
| 425 | script_dir = Path(__file__).parent.absolute() |
| 426 | os.chdir(script_dir) |
| 427 | |
| 428 | while True: |
| 429 | projects = get_existing_projects() |
| 430 | display_menu(projects) |
| 431 | |
| 432 | choice = input("Select option: ").strip().lower() |
| 433 | |
| 434 | if choice == 'q': |
| 435 | print("\nGoodbye!") |
| 436 | break |
| 437 | |
| 438 | elif choice == '1': |
| 439 | result = create_new_project_flow() |
| 440 | if result: |
| 441 | project_name, project_dir = result |
| 442 | run_agent(project_name, project_dir) |
| 443 | |
| 444 | elif choice == '2' and projects: |
| 445 | display_projects(projects) |
| 446 | selected = get_project_choice(projects) |
| 447 | if selected: |
| 448 | project_name, project_dir = selected |
| 449 | run_agent(project_name, project_dir) |
| 450 | |
| 451 | else: |
| 452 | print("Invalid option. Please try again.") |
| 453 | |
| 454 | |
| 455 | if __name__ == "__main__": |
no test coverage detected