(prompt: str, fallback: str)
| 156 | |
| 157 | |
| 158 | def prompt_with_fallback(prompt: str, fallback: str) -> str: |
| 159 | if is_auto_mode(): |
| 160 | return input_with_fallback(prompt, fallback).strip() |
| 161 | |
| 162 | try: |
| 163 | return Prompt.ask(prompt).strip() |
| 164 | except (EOFError, KeyboardInterrupt): |
| 165 | return fallback |
| 166 | |
| 167 | |
| 168 | def ask_user_questions(questions: list[Question]) -> list[QuestionAnswer]: |
no test coverage detected