Closed andykais closed 4 years ago
This seems to be working fine in the example.js, what OS/node combo do you have? Does the example also not work for you?
As for introducing validate when suggestOnly false I don't think I want to introduce that. I want to mimic as much as possible the list input in inquirer. It does not have the validate method. You should rather make sure in "search" that only valid options are provided.
using
value passed to validate is empty, search is async.
It would also be nice if I could validate an input even when suggestOnly is false. There are times when I want to check async things and the validate step is the most appropriate place to do it.