manifoldco / promptui

Interactive prompt for command-line applications

Home Page:https://www.manifold.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run validation after return key

jsanz-cyracom opened this issue · comments

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.