in src/clients.ts [73:89]
function confirmPrompt(): Promise<boolean> {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
return new Promise(ok => {
rl.question('Confirm (Y/N)? ', answer => {
rl.close();
if (answer.toUpperCase() === 'Y') {
ok(true);
} else {
ok(false);
}
});
});
}