promptui
promptui copied to clipboard
Don't show error prompt until user inputs something
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.