(targets: readonly string[])
| 197 | } |
| 198 | |
| 199 | async buildTargets(targets: readonly string[]): Promise<CommandResult> { |
| 200 | // Use 'inherit' as the stdio mode by default as usually the output irrelevant |
| 201 | // and only the success/failure matters |
| 202 | |
| 203 | const allTargets = targets.join(' '); |
| 204 | const commandBuildTarget = `build ${allTargets} --show_result=${targets.length}`; |
| 205 | |
| 206 | return await this.spawnCommand(commandBuildTarget, 'inherit').catch(() => { |
| 207 | throw new CliError(`Failed to build targets: ${targets.join(' ')}`); |
| 208 | }); |
| 209 | } |
| 210 | |
| 211 | async runTarget(target: string, extraArgs: string = ''): Promise<CommandResult> { |
| 212 | const commandBuildTarget = `run ${target} ${extraArgs}`; |
no test coverage detected