ConfirmationPromptExtensions Class

Contains extension methods for ConfirmationPrompt.
public static class ConfirmationPromptExtensions
Namespace
Spectre.Console

Methods

static ConfirmationPrompt HideChoices(ConfirmationPrompt)
Hides choices.
static ConfirmationPrompt HideDefaultValue(ConfirmationPrompt)
Hides the default value.
static ConfirmationPrompt InvalidChoiceMessage(ConfirmationPrompt, string)
Sets the "invalid choice" message for the prompt.
static ConfirmationPrompt No(ConfirmationPrompt, char)
Sets the character to interpret as "no".
static ConfirmationPrompt ShowChoices(ConfirmationPrompt, bool)
Show or hide choices.
static ConfirmationPrompt ShowChoices(ConfirmationPrompt)
Shows choices.
static ConfirmationPrompt ShowDefaultValue(ConfirmationPrompt, bool)
Show or hide the default value.
static ConfirmationPrompt ShowDefaultValue(ConfirmationPrompt)
Shows the default value.
static ConfirmationPrompt Yes(ConfirmationPrompt, char)
Sets the character to interpret as "yes".