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

Function getBazelCommandString

npm_modules/cli/src/utils/BazelClient.ts:36–38  ·  view source on GitHub ↗
(baseCommand: string, extraArgs: string, quiet: boolean)

Source from the content-addressed store, hash-verified

34}
35
36function getBazelCommandString(baseCommand: string, extraArgs: string, quiet: boolean): string {
37 return `${getBazelCli()} ${BAZEL_PREFIXED_OPTIONS} ${baseCommand} ${extraArgs} ${quiet ? BAZEL_QUIET_OPTIONS : ''} ${BAZEL_POSTFIXED_OPTIONS}`.trim();
38}
39
40function escapeQuery(str: string): string {
41 return str.replaceAll('"', '\\"');

Callers 2

runCommandMethod · 0.85
spawnCommandMethod · 0.85

Calls 2

getBazelCliFunction · 0.85
trimMethod · 0.45

Tested by

no test coverage detected