(message: string)
| 67 | } |
| 68 | |
| 69 | export async function waitForUserPrompt(message: string): Promise<void> { |
| 70 | const rl = readline.createInterface({ |
| 71 | input: process.stdin, |
| 72 | output: process.stdout, |
| 73 | }); |
| 74 | |
| 75 | return new Promise((resolve) => { |
| 76 | rl.question(chalk.dim(`[${message}]\n`), () => { |
| 77 | rl.close(); |
| 78 | resolve(); |
| 79 | }); |
| 80 | }); |
| 81 | } |
| 82 | |
| 83 | export async function pauseIfDebug(debug: boolean) { |
| 84 | if (debug) { |