manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.03k stars 333 forks source link

Run validation after return key #218

Open jsanz-cyracom opened 1 year ago

jsanz-cyracom commented 1 year ago

I have a scenario where I need to make a web request in the validation function of a prompt. If use the current validate function it would make a web request for every keystroke when running the prompt. It would be useful to introduce a ValidateR property where the function only gets executed after the user presses the return key.