Prompt for confirmation (yes/no) and handle any abort exceptions.
(*args, **kwargs)
| 22 | |
| 23 | |
| 24 | def confirm(*args, **kwargs): |
| 25 | """Prompt for confirmation (yes/no) and handle any abort exceptions.""" |
| 26 | try: |
| 27 | return click.confirm(*args, **kwargs) |
| 28 | except click.Abort: |
| 29 | return False |
| 30 | |
| 31 | |
| 32 | def prompt(*args, **kwargs): |
no outgoing calls
no test coverage detected