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

Function main

start.py:422–452  ·  view source on GitHub ↗

Main entry point.

()

Source from the content-addressed store, hash-verified

420
421
422def 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
455if __name__ == "__main__":

Callers 1

start.pyFile · 0.70

Calls 6

get_existing_projectsFunction · 0.85
display_menuFunction · 0.85
create_new_project_flowFunction · 0.85
run_agentFunction · 0.85
display_projectsFunction · 0.85
get_project_choiceFunction · 0.85

Tested by

no test coverage detected