make `promptBool()` return false upon Ctrl+C (#557)
* move `prompt-options.js` to utils/input dir
* make `promptBool()` return false upon Ctrl+C
Also make the `info('Aborted')` output more consistent
across the CLI.
* Revert "handle user abort in `now domains buy` (#554)"
This reverts commit 34151c8193.
@ -550,17 +550,10 @@ async function sync({ token, config: { currentTeam, user } }) {
`${chalk.bold((currentTeam&&`${currentTeam.slug} is`)||`You (${user.username||user.email}) are`)} on the OSS plan. Your code and logs will be made ${chalk.bold('public')}.`
`${chalk.bold((currentTeam&&`${currentTeam.slug} is`)||`You (${user.username||user.email}) are`)} on the OSS plan. Your code and logs will be made ${chalk.bold('public')}.`
)
)
letproceed
constproceed=awaitpromptBool(
try{
'Are you sure you want to proceed with the deployment?',
constlabel='Are you sure you want to proceed with the deployment?'