MCPcopy Create free account
hub / github.com/agent-tower/core / getBundledPrismaCommand

Function getBundledPrismaCommand

packages/server/src/utils/process-launch.ts:243–248  ·  view source on GitHub ↗
(moduleDir: string)

Source from the content-addressed store, hash-verified

241 const message = error instanceof Error ? error.message : String(error);
242 console.error(message);
243 process.exit(1);
244}
245
246function escapeArgForCmd(arg) {
247 if (/[\s"&|<>^()!]/.test(arg) || arg === '') {
248 return '"' + arg.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"';
249 }
250 return arg;
251}

Callers 2

index.tsFile · 0.85
ensureDatabaseFunction · 0.85

Calls 1

getNodeRuntimeCommandFunction · 0.85

Tested by

no test coverage detected