(query: string)
| 9 | |
| 10 | // Ask the user whether to execute changeset |
| 11 | function askConfirmation(query: string) { |
| 12 | return new Promise((resolve) => { |
| 13 | rl.question(query, (answer) => { |
| 14 | answer = answer || 'y' |
| 15 | resolve(answer.toLowerCase() === 'y') |
| 16 | }) |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | // Run the specified shell command |
| 21 | function runCommand(command: string) { |