Represents a prompt.
Methods
public T Show(IAnsiConsole console)
Shows the prompt.
Parameters:
console (IAnsiConsole)The console.
Returns:
The prompt input result.
public Task<T> ShowAsync(IAnsiConsole console, CancellationToken cancellationToken)
Shows the prompt asynchronously.
Parameters:
console (IAnsiConsole)The console.
cancellationToken (CancellationToken)The token to monitor for cancellation requests.
Returns:
The prompt input result.