(destPath: string, argv: ArgumentsResolver<CommandParameters>)
| 183 | } |
| 184 | |
| 185 | async function finalConfirmation(destPath: string, argv: ArgumentsResolver<CommandParameters>): Promise<boolean> { |
| 186 | return argv.getArgumentOrResolve('skipChecks', async () => { |
| 187 | const confirmMessage = ` |
| 188 | Create module? |
| 189 | Path: ${wrapInColor(destPath, ANSI_COLORS.GREEN_COLOR)} |
| 190 | `; |
| 191 | const answers = await inquirer.prompt<{ confirm?: boolean }>( |
| 192 | [ |
| 193 | { |
| 194 | type: 'confirm', |
| 195 | name: 'confirm', |
| 196 | message: confirmMessage, |
| 197 | default: true, |
| 198 | }, |
| 199 | ], |
| 200 | {}, |
| 201 | ); |
| 202 | |
| 203 | return answers.confirm ?? false; |
| 204 | }); |
| 205 | } |
| 206 | |
| 207 | function getBazelWorkspaceRoot() { |
| 208 | return new BazelClient().getWorkspaceRoot(); |
no test coverage detected