Secret<T>(TextPrompt<T>, char?) Method
Replaces prompt user input with mask in the console.
public static TextPrompt<T> Secret<T>(this TextPrompt<T> obj, char? mask)
- Namespace
- Spectre
.Console - Containing Type
- TextPromptExtensions
Parameters
-
T
- The prompt type.
Parameters
-
TextPrompt
<T> obj - The prompt.
- char? mask
- The masking character to use for the secret.