Skip to content
ConsoleMonster
Class

SecretPromptFluent

ConsoleMonster.Interactive

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

The fluent methods of SecretPrompt, 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
  • SecretPromptFluent

Methods

AllowReveal 2 overloads
public static SecretPrompt AllowReveal(SecretPrompt secretPrompt, bool value) #

Sets SecretPrompt.AllowReveal: Whether Ctrl+R can reveal the typed text.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value bool required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property        // C# fluent
secretPrompt.AllowReveal = value;    Ui.SecretPrompt().AllowReveal(value);
public static SecretPrompt AllowReveal(SecretPrompt secretPrompt) #

Sets SecretPrompt.AllowReveal to true.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance to configure.

Returns

SecretPrompt The same instance.
public static SecretPrompt Configure(SecretPrompt secretPrompt, Action<SecretPrompt> configure) #

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
configure System.Action<ConsoleMonster.Interactive.SecretPrompt> required
Assignments applied in order.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property      // C# fluent
secretPrompt.Validator = value;    Ui.SecretPrompt().Configure(configured => configured.Validator = value);
public static SecretPrompt Default(SecretPrompt secretPrompt, string value) #

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

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value string required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
secretPrompt.Default = value;    Ui.SecretPrompt().Default(value);
public static SecretPrompt Description(SecretPrompt secretPrompt, string? value) #

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

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value string? required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property        // C# fluent
secretPrompt.Description = value;    Ui.SecretPrompt().Description(value);
public static SecretPrompt Display(SecretPrompt secretPrompt, SecretDisplay value) #

Sets SecretPrompt.Display: How the secret is shown while typed.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value ConsoleMonster.Interactive.SecretDisplay required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
secretPrompt.Display = value;    Ui.SecretPrompt().Display(value);
public static SecretPrompt MinLength(SecretPrompt secretPrompt, int value) #

Sets SecretPrompt.MinLength: The fewest characters accepted.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value int required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property      // C# fluent
secretPrompt.MinLength = value;    Ui.SecretPrompt().MinLength(value);
public static SecretPrompt ParameterName(SecretPrompt secretPrompt, string? value) #

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

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value string? required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property          // C# fluent
secretPrompt.ParameterName = value;    Ui.SecretPrompt().ParameterName(value);
Required 2 overloads
public static SecretPrompt Required(SecretPrompt secretPrompt, bool value) #

Sets SecretPrompt.Required: Whether an empty answer is refused.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value bool required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property     // C# fluent
secretPrompt.Required = value;    Ui.SecretPrompt().Required(value);
public static SecretPrompt Required(SecretPrompt secretPrompt) #

Sets SecretPrompt.Required to true.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance to configure.

Returns

SecretPrompt The same instance.
public static SecretPrompt Title(SecretPrompt secretPrompt, string value) #

Sets Prompt<string>.Title: The question.

Parameters

secretPrompt ConsoleMonster.Interactive.SecretPrompt required
The instance.
value string required
The value.

Returns

SecretPrompt The same instance.

Examples

// C# initializer or property    // C# fluent
secretPrompt.Title = value;      Ui.SecretPrompt().Title(value);