cli-ux icon indicating copy to clipboard operation
cli-ux copied to clipboard

cli.confirm should allow for defaults

Open TranquilMarmot opened this issue 6 years ago • 2 comments

It's common in CLIs to have a yes/no prompt with a default, i.e. (Y/n) implies that just pressing enter will default to "yes".

It would be nice to have an option for cli.confirm to be able to accept a default answer (this would probably also be nice for cli.prompt)

TranquilMarmot avatar Jan 14 '20 21:01 TranquilMarmot

Good idea! Should be a straightforward PR if someone wants to pick this up.

RasPhilCo avatar Jan 21 '20 00:01 RasPhilCo

we need it.

AaronConlon avatar Dec 24 '20 07:12 AaronConlon