(message: string)
| 3 | import ora from 'ora' |
| 4 | |
| 5 | const confirmDanger = async (message: string): Promise<boolean> => { |
| 6 | const answer = await tuiPrompts.confirm({ |
| 7 | message: `Destructive action: ${message}`, |
| 8 | initialValue: false, |
| 9 | }) |
| 10 | |
| 11 | if (tuiPrompts.isCancel(answer) || !answer) { |
| 12 | tuiPrompts.cancel('Cancelled') |
| 13 | return false |
| 14 | } |
| 15 | |
| 16 | return true |
| 17 | } |
| 18 | |
| 19 | export const runDevMenu = async (): Promise<number> => { |
| 20 | const action = await tuiPrompts.select({ |