Sensitive operation confirmation callback / 敏感操作确认回调
(message: str)
| 46 | msgs = get_messages(lang) |
| 47 | |
| 48 | def my_confirmation(message: str) -> bool: |
| 49 | """Sensitive operation confirmation callback / 敏感操作确认回调""" |
| 50 | print(f"\n[{msgs['confirmation_required']}] {message}") |
| 51 | response = input(f"{msgs['continue_prompt']}: ") |
| 52 | return response.lower() in ("yes", "y", "是") |
| 53 | |
| 54 | def my_takeover(message: str) -> None: |
| 55 | """Manual takeover callback / 人工接管回调""" |
nothing calls this directly
no outgoing calls
no test coverage detected