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

Method runTarget

npm_modules/cli/src/utils/BazelClient.ts:211–217  ·  view source on GitHub ↗
(target: string, extraArgs: string = '')

Source from the content-addressed store, hash-verified

209 return Digraph.parse(stdout.trim());
210 }
211
212 async queryBuildOutputs(targets: readonly string[], extraArgs: string = ''): Promise<string[]> {
213 const command = `cquery 'set(${targets.join(' ')})' --output files ${this.stableExecArgs()} ${extraArgs}`;
214 const lines = await this.runCommandWithLinesOutput(command);
215 return lines.sort();
216 }
217
218 async buildTarget(target: string, extraArgs: string = ''): Promise<CommandResult> {
219 // Use 'inherit' as the stdio mode by default as usually the output irrelevant
220 // and only the success/failure matters

Callers 2

valdiInstallFunction · 0.95
valdiPreviewFunction · 0.95

Calls 1

spawnCommandMethod · 0.95

Tested by

no test coverage detected