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

Method graphQuery

npm_modules/cli/src/utils/BazelClient.ts:176–181  ·  view source on GitHub ↗
(queryStr: string)

Source from the content-addressed store, hash-verified

174 }
175
176 async graphQuery(queryStr: string): Promise<Digraph> {
177 const command = `query "${escapeQuery(queryStr)}" --output=graph`;
178 const { stdout } = await this.runCommand(command);
179
180 return Digraph.parse(stdout.trim());
181 }
182
183 async queryBuildOutputs(targets: readonly string[], extraArgs: string = ''): Promise<string[]> {
184 const command = `cquery 'set(${targets.join(' ')})' --output files ${extraArgs}`;

Callers

nothing calls this directly

Calls 4

runCommandMethod · 0.95
escapeQueryFunction · 0.85
parseMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected