MCPcopy Create free account
hub / github.com/Snapchat/Valdi / spawnCommand

Method spawnCommand

npm_modules/cli/src/utils/BazelClient.ts:277–287  ·  view source on GitHub ↗
(
    command: string,
    stdioMode: StdioOptions = DEFAULT_STDIO_MODE,
    extraArgs: string = '',
  )

Source from the content-addressed store, hash-verified

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 {

Callers 7

queryTargetsForKindsMethod · 0.95
queryTargetsForTagMethod · 0.95
buildTargetMethod · 0.95
buildTargetsMethod · 0.95
runTargetMethod · 0.95
testTargetsMethod · 0.95

Calls 5

wrapInColorFunction · 0.90
spawnCliCommandFunction · 0.90
getBazelCommandStringFunction · 0.85
getBazelCliFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected