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

Method getVersion

npm_modules/cli/src/utils/BazelClient.ts:248–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 }
247
248 async getVersion(): Promise<[number, string, string]> {
249 const commandBazelInfoVersion = `version --gnu_format`;
250 const {
251 returnCode: returnCode,
252 stdout: versionInfo,
253 stderr: error,
254 } = await this.runCommand(commandBazelInfoVersion);
255
256 return [returnCode, versionInfo.trim(), String(error)];
257 }
258
259 private async runCommandWithLinesOutput(command: string): Promise<string[]> {
260 const { stdout: outputStrings } = await this.runCommand(command);

Callers 2

valdiBootstrapFunction · 0.95

Calls 3

runCommandMethod · 0.95
StringClass · 0.50
trimMethod · 0.45

Tested by

no test coverage detected