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

Function ask_spec_creation_choice

start.py:310–327  ·  view source on GitHub ↗

Ask user whether to create spec with Claude or manually.

()

Source from the content-addressed store, hash-verified

308
309
310def ask_spec_creation_choice() -> str | None:
311 """Ask user whether to create spec with Claude or manually."""
312 print("\n" + "-" * 40)
313 print(" Specification Setup")
314 print("-" * 40)
315 print("\nHow would you like to define your project?")
316 print("\n[1] Create spec with Claude (recommended)")
317 print(" Interactive conversation to define your project")
318 print("\n[2] Edit templates manually")
319 print(" Edit the template files directly in your editor")
320 print("\n[b] Back to main menu")
321 print()
322
323 while True:
324 choice = input("Select [1/2/b]: ").strip().lower()
325 if choice in ['1', '2', 'b']:
326 return choice
327 print("Invalid choice. Please enter 1, 2, or b.")
328
329
330def create_new_project_flow() -> tuple[str, Path] | None:

Callers 1

create_new_project_flowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected