Skip to content

v0.1.7

Compare
Choose a tag to compare
@terkelg terkelg released this 11 Mar 22:31
· 154 commits to master since this release

New: Better default values
Most prompts now support default values with the initial property.
initial is used when a prompt is submitted without any values.
As soon as you start typing the initial value disappear. Hit tab to expand defaults NumberPrompt and all TextPrompt based prompts.

New: stdin and stdout option

  • This is going to be used to test prompts in future releases.

New: Improved NumberPrompt

  • Now supports floats too! Activate with the float option.
  • You can now enter negative values without having to use the arrow keys
  • Option to round float values with round
  • Option to change how much the arrow-keys increment with increment

New: hint added to SelectPrompt

New: Fallback message for AutocompletePrompt

  • New initial option
  • New option to define a fallback message when no results are found with fallback. Defaults to initial value or no matches found if no initial value is defined.

Fixes

  • Fix broken style function in NumberPrompt