InquirerConfirm
Bases: InquirerWidget
A confirmation prompt that allows the user to confirm or reject.
__init__(message, confirm_character='y', reject_character='n', default=False, mandatory=True)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The prompt message to display. |
required |
confirm_character
|
str
|
The character to use for confirmation. |
'y'
|
reject_character
|
str
|
The character to use for rejection. |
'n'
|
default
|
bool
|
The default value if the user presses Enter without input. |
False
|
mandatory
|
bool
|
Whether a response is mandatory. |
True
|