promptui icon indicating copy to clipboard operation
promptui copied to clipboard

Fix issue #81: do not return err if 'n' is chosen in confirm prompt

Open giulianopz opened this issue 1 year ago • 0 comments

The 'n' user input should not be considered an error in a yes/no question. Instead, simply return 'y' or 'n' if chosen. Allow empty string only if default is set and return it. Otherwise return err.

giulianopz avatar Apr 12 '23 22:04 giulianopz