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

Method runCommand

npm_modules/cli/src/utils/BazelClient.ts:270–275  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

268 async testTargets(targets: string[], extraArgs: string = ''): Promise<CommandResult> {
269 const targetsString = targets.join(' ');
270 const commandTestTarget = `test ${targetsString} ${this.stableExecArgs()} ${extraArgs}`;
271
272 return await this.spawnCommand(commandTestTarget, 'inherit', extraArgs).catch(() => {
273 throw new CliError(`Failed to test targets: ${targetsString}`);
274 });
275 }
276
277 async getVersion(): Promise<[number, string, string]> {
278 const commandBazelInfoVersion = `version --gnu_format`;

Callers 4

graphQueryMethod · 0.95
getVersionMethod · 0.95

Calls 7

runCliCommandFunction · 0.90
wrapInColorFunction · 0.90
getBazelCommandStringFunction · 0.85
getBazelCliFunction · 0.85
fromTaskMethod · 0.80
showMethod · 0.65
setTextMethod · 0.45

Tested by

no test coverage detected