IPrompt<T> Interface

Represents a prompt.
public interface IPrompt<T>

Parameters

T
The prompt result type.

Methods

abstract T Show(IAnsiConsole)
Shows the prompt.
abstract Task<T> ShowAsync(IAnsiConsole, CancellationToken)
Shows the prompt asynchronously.

Extension Methods

T And<IPrompt<T>>(Action<IPrompt<T>>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.