(state: {
value: InitialReturnValue
aborted: boolean
exited: boolean
})
| 25 | process.on('SIGTERM', handleSigTerm) |
| 26 | |
| 27 | const onPromptState = (state: { |
| 28 | value: InitialReturnValue |
| 29 | aborted: boolean |
| 30 | exited: boolean |
| 31 | }) => { |
| 32 | if (state.aborted) { |
| 33 | // If we don't re-enable the terminal cursor before exiting |
| 34 | // the program, the cursor will remain hidden |
| 35 | process.stdout.write('\x1B[?25h') |
| 36 | process.stdout.write('\n') |
| 37 | process.exit(1) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | const program = new Command(packageJson.name) |
| 42 | .version( |