(
command: string,
stdioMode: StdioOptions = DEFAULT_STDIO_MODE,
extraArgs: string = '',
)
| 275 | } |
| 276 | |
| 277 | private async spawnCommand( |
| 278 | command: string, |
| 279 | stdioMode: StdioOptions = DEFAULT_STDIO_MODE, |
| 280 | extraArgs: string = '', |
| 281 | ): Promise<CommandResult> { |
| 282 | const commandWithOptions = getBazelCommandString(command, extraArgs, false); |
| 283 | console.log( |
| 284 | `${wrapInColor('Running Bazel command:', ANSI_COLORS.YELLOW_COLOR)} ${getBazelCli()} ${command} ${extraArgs}`, |
| 285 | ); |
| 286 | return await spawnCliCommand(commandWithOptions, undefined, stdioMode, true, true); |
| 287 | } |
| 288 | |
| 289 | private async resolveTarget(pathStr: string): Promise<string> { |
| 290 | const absolutePath = path.resolve(pathStr); |
no test coverage detected