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

Method buildTargets

npm_modules/cli/src/utils/BazelClient.ts:199–209  ·  view source on GitHub ↗
(targets: readonly string[])

Source from the content-addressed store, hash-verified

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}`;

Callers 2

valdiAgentCheckFunction · 0.95
buildProjectSyncsFunction · 0.80

Calls 2

spawnCommandMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected