Skip to content 2.0.7 - 2018-11-14
Fixed
validate function now properly accepts false as a return value, thanks to @g-plane.
Added
- Adds support for ctrl+n to add choices
- Adds support for
options.required on all prompts. Uses the built-in validate() function, allowing this functionality to be overridden or customized.
- Adds support for
options.scroll to disable scrolling in array prompts.
- Adds support for
options.onRun, which is called when prompt.run() is called, after the readline instance is created.
- Adds support for
options.history on the Input and Text prompts.
- Adds support for
options.term to set the terminal, thanks to @tunnckoCore. At the moment this is only used in a couple of edge cases with the Survey and Scale prompts to check if the terminal is Hyper.
options.skip may now be a Boolean, thanks to @tunnckoCore