(
command: string,
stdioMode: StdioOptions = DEFAULT_STDIO_MODE,
extraArgs: string = '',
)
| 275 | } |
| 276 | |
| 277 | async getVersion(): Promise<[number, string, string]> { |
| 278 | const commandBazelInfoVersion = `version --gnu_format`; |
| 279 | const { |
| 280 | returnCode: returnCode, |
| 281 | stdout: versionInfo, |
| 282 | stderr: error, |
| 283 | } = await this.runCommand(commandBazelInfoVersion); |
| 284 | |
| 285 | return [returnCode, versionInfo.trim(), String(error)]; |
| 286 | } |
| 287 | |
| 288 | // Empty unless the workspace defines the `stable_exec` config. Memoized so a |
| 289 | // single command (e.g. agent-check's build-then-test) resolves it once. |
| 290 | private stableExecArgs(): string { |
no test coverage detected