Prompt user for yes/no answer. Args: question: The question to ask Returns: True if user answered yes, False otherwise
(question: str)
| 42 | |
| 43 | |
| 44 | async def prompt_yes_no(question: str) -> bool: |
| 45 | """Prompt user for yes/no answer. |
| 46 | |
| 47 | Args: |
| 48 | question: The question to ask |
| 49 | |
| 50 | Returns: |
| 51 | True if user answered yes, False otherwise |
| 52 | """ |
| 53 | return confirm_with_fallback(f"\n{question} (y/n): ", default=True) |
| 54 | |
| 55 | |
| 56 | async def main(): |
no test coverage detected