(question: string)
| 74 | } |
| 75 | |
| 76 | async function promptConfirm(question: string): Promise<boolean> { |
| 77 | if (!isInteractiveTTY()) { |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | const result = await clack.confirm({ |
| 82 | message: question, |
| 83 | initialValue: false, |
| 84 | }); |
| 85 | |
| 86 | if (clack.isCancel(result)) { |
| 87 | clack.cancel('Operation cancelled.'); |
| 88 | return false; |
| 89 | } |
| 90 | |
| 91 | return result; |
| 92 | } |
| 93 | |
| 94 | interface InstallResult { |
| 95 | client: string; |
no test coverage detected