Ask user whether to create spec with Claude or manually.
()
| 308 | |
| 309 | |
| 310 | def 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 | |
| 330 | def create_new_project_flow() -> tuple[str, Path] | None: |
no outgoing calls
no test coverage detected