Prompt<T>(IAnsiConsole, IPrompt<T>) Method
Displays a prompt to the user.
public static T Prompt<T>(this IAnsiConsole console, IPrompt<T> prompt)
- Namespace
- Spectre
.Console - Containing Type
- Ansi
Console Extensions
Parameters
-
T
- The prompt result type.
Parameters
- IAnsiConsole console
- The console.
-
IPrompt
<T> prompt - The prompt to display.
Returns
- T