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

Don't show error prompt until user inputs something #174

Open eandre opened 3 years ago

eandre commented 3 years ago

When a prompt is given a validation function that fails on the empty string, the user experience of immediately being shown an "X" can be jarring. Instead track whether the user has ever input something, and if they haven't render the initial prompt instead.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.