ConfirmationPromptExtensions Class

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

Methods

static ConfirmationPrompt ChoicesStyle(ConfirmationPrompt, Style)
Sets the style in which the list of choices is displayed.
static ConfirmationPrompt DefaultValueStyle(ConfirmationPrompt, Style)
Sets the style in which the default value is displayed.
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".