ConfirmationPromptExtensions Class
Contains extension methods for
ConfirmationPrompt
.
public static class ConfirmationPromptExtensions
- Namespace
- Spectre
.Console
Methods
-
static ConfirmationPrompt ChoicesStyle
( Confirmation Prompt, Style) - Sets the style in which the list of choices is displayed.
-
static ConfirmationPrompt DefaultValueStyle
( Confirmation Prompt, 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
( Confirmation Prompt, string) - Sets the "invalid choice" message for the prompt.
-
static ConfirmationPrompt No
( Confirmation Prompt, char) - Sets the character to interpret as "no".
-
static ConfirmationPrompt ShowChoices
( Confirmation Prompt, bool) - Show or hide choices.
-
static ConfirmationPrompt ShowChoices
(ConfirmationPrompt) - Shows choices.
-
static ConfirmationPrompt ShowDefaultValue
( Confirmation Prompt, bool) - Show or hide the default value.
-
static ConfirmationPrompt ShowDefaultValue
(ConfirmationPrompt) - Shows the default value.
-
static ConfirmationPrompt Yes
( Confirmation Prompt, char) - Sets the character to interpret as "yes".