SecretPromptFluent
ConsoleMonster.Interactive
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
public static SecretPrompt AllowReveal(SecretPrompt secretPrompt, bool value) #Sets SecretPrompt.AllowReveal: Whether Ctrl+R can reveal the typed text.
Parameters
- secretPrompt ConsoleMonster.Interactive.SecretPrompt
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static SecretPrompt Configure(SecretPrompt secretPrompt, Action<SecretPrompt> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- secretPrompt ConsoleMonster.Interactive.SecretPrompt
- The instance.
- configure System.Action<ConsoleMonster.Interactive.SecretPrompt>
- Assignments applied in order.
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
- The instance.
- value string
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value ConsoleMonster.Interactive.SecretDisplay
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
secretPrompt.ParameterName = value; Ui.SecretPrompt().ParameterName(value);public static SecretPrompt Required(SecretPrompt secretPrompt, bool value) #Sets SecretPrompt.Required: Whether an empty answer is refused.
Parameters
- secretPrompt ConsoleMonster.Interactive.SecretPrompt
- The instance.
- value bool
- The value.
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
- The instance to configure.
public static SecretPrompt Title(SecretPrompt secretPrompt, string value) #Sets Prompt<string>.Title: The question.
Parameters
- secretPrompt ConsoleMonster.Interactive.SecretPrompt
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
secretPrompt.Title = value; Ui.SecretPrompt().Title(value);