* 设置更多配置的确认项
(message: string)
| 172 | * 设置更多配置的确认项 |
| 173 | */ |
| 174 | async function promptConfirm(message: string): Promise<boolean> { |
| 175 | const { res } = await inquirer.prompt([ |
| 176 | { |
| 177 | name: 'res', |
| 178 | type: 'confirm', |
| 179 | message, |
| 180 | default: false, |
| 181 | }, |
| 182 | ]); |
| 183 | |
| 184 | return res; |
| 185 | } |