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