Skip to content
ConsoleMonster
Class

ConfirmPromptFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of ConfirmPrompt, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • ConfirmPromptFluent

Methods

Default 2 overloads
public static ConfirmPrompt Default(ConfirmPrompt confirmPrompt, bool value) #

Sets Prompt<bool>.Default: The default answer: pre-selected, accepted with Enter, and returned in non-interactive sessions.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value bool required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property     // C# fluent
confirmPrompt.Default = value;    Ui.ConfirmPrompt().Default(value);
public static ConfirmPrompt Default(ConfirmPrompt confirmPrompt) #

Sets Prompt<bool>.Default to true.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance to configure.

Returns

ConfirmPrompt The same instance.
public static ConfirmPrompt Description(ConfirmPrompt confirmPrompt, string? value) #

Sets Prompt<bool>.Description: Help text under the question.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value string? required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property         // C# fluent
confirmPrompt.Description = value;    Ui.ConfirmPrompt().Description(value);
Destructive 2 overloads
public static ConfirmPrompt Destructive(ConfirmPrompt confirmPrompt, bool value) #

Sets ConfirmPrompt.Destructive: Marks the question as destructive: a warning mark, and No is focused unless the default says otherwise.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value bool required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property         // C# fluent
confirmPrompt.Destructive = value;    Ui.ConfirmPrompt().Destructive(value);
public static ConfirmPrompt Destructive(ConfirmPrompt confirmPrompt) #

Sets ConfirmPrompt.Destructive to true.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance to configure.

Returns

ConfirmPrompt The same instance.
public static ConfirmPrompt NoText(ConfirmPrompt confirmPrompt, string? value) #

Sets ConfirmPrompt.NoText: The caption of the negative answer; null uses the labels.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value string? required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
confirmPrompt.NoText = value;    Ui.ConfirmPrompt().NoText(value);
public static ConfirmPrompt ParameterName(ConfirmPrompt confirmPrompt, string? value) #

Sets Prompt<bool>.ParameterName: The parameter that supplies this value non-interactively (-Domain, --domain); named in the non-interactive error message.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value string? required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property           // C# fluent
confirmPrompt.ParameterName = value;    Ui.ConfirmPrompt().ParameterName(value);
public static ConfirmPrompt Title(ConfirmPrompt confirmPrompt, string value) #

Sets Prompt<bool>.Title: The question.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value string required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
confirmPrompt.Title = value;     Ui.ConfirmPrompt().Title(value);
public static ConfirmPrompt YesText(ConfirmPrompt confirmPrompt, string? value) #

Sets ConfirmPrompt.YesText: The caption of the positive answer; null uses the labels.

Parameters

confirmPrompt ConsoleMonster.Interactive.ConfirmPrompt required
The instance.
value string? required
The value.

Returns

ConfirmPrompt The same instance.

Examples

// C# initializer or property     // C# fluent
confirmPrompt.YesText = value;    Ui.ConfirmPrompt().YesText(value);