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 }
269
270 private runCommand(command: string): Promise<CommandResult> {
271 const commandWithOptions = getBazelCommandString(command, '', false);
272 return LoadingIndicator.fromTask(runCliCommand(commandWithOptions, undefined, true))
273 .setText(`${wrapInColor('Running Bazel command:', ANSI_COLORS.YELLOW_COLOR)} ${getBazelCli()} ${command}`)
274 .show();
275 }
276
277 private async spawnCommand(
278 command: string,

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