Default value(s) to use if nothing is entered, or a function that returns the default value(s). If defined as a function, the first parameter will be the current inquirer session answers.
Add a mask when password will entered
The question to print. If defined as a function, the first parameter will be the current inquirer session answers.
The name to use when storing the answer in the anwers hash.
Change the number of lines that will be rendered when using list, rawList, expand or checkbox.
Change the default prefix message.
whether to store the user's previous answer
Change the default suffix message.
Type of the prompt. Possible values:
Receive the current user answers hash and should return true or false depending on whether or not this question should be asked. The value can also be a simple boolean.
Receive the user input and return the filtered value to be used inside the program. The value returned will be added to the Answers hash.
Receive the user input and should return true if the value is valid, and an error message (String) otherwise. If false is returned, a default error message is provided.
Generated using TypeDoc
Choices array or a function returning a choices array. If defined as a function, the first parameter will be the current inquirer session answers. Array values can be simple strings, or objects containing a name (to display) and a value properties (to save in the answers hash). Values can also be a Separator.