Prompts:轻量级,美观且用户友好的交互式提示
Prompts:轻量级,美观且用户友好的交互式提示
Assets
2
Update kleur to version 3
Assets
2
- New onRender callback feature #101 by @DrunkenPoney
- Added disable option #102 #96 #104 by @DrunkenPoney @pvdlg @SurionA
- Fixed suggest/choices bug #98 by @DrunkenPoney
- Expose all hardcoded strings as options to allow for translation #94 by @millette
Prompts recently hit 4 Million downloads a month.
Thanks to all the amazing contributors!
Prompts v0.1.7
terkelg released this
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 toinitial
value orno matches found
if no initial value is defined.
Fixes
- Fix broken
style
function in NumberPrompt
Fix dynamic prompts
terkelg released this
Fix broken dynamic prompts #53 after refactor #43. Thanks @WilliamChelman
Skip all falsy values
terkelg released this
#10 Now makes it possible to skip prompts with all falsy values. Not only null
.
Watchers:57 |
Star:4581 |
Fork:141 |
创建时间: 2018-02-24 18:11:47 |
最后Commits: 3天前 |
许可协议:MIT |
605be8a
Fix default values for toggle prompt. #134 #133
Thank you @lumio