Confirm(string, bool) Method
Displays a prompt with two choices, yes or no.
public static bool Confirm(string prompt, bool defaultValue = true)
- Namespace
- Spectre
.Console - Containing Type
- AnsiConsole
Parameters
- string prompt
- The prompt markup text.
- bool defaultValue
- Specifies the default answer.
Returns
- bool