MCPcopy Create free account
hub / github.com/pingdotgg/t3code / formatProcessInvocation

Function formatProcessInvocation

apps/server/src/processRunner.ts:53–62  ·  view source on GitHub ↗
(input: {
  readonly command: string;
  readonly cwd?: string | undefined;
  readonly spawnCwd?: string | undefined;
})

Source from the content-addressed store, hash-verified

51};
52
53const formatProcessInvocation = (input: {
54 readonly command: string;
55 readonly cwd?: string | undefined;
56 readonly spawnCwd?: string | undefined;
57}): string => {
58 const executionCwd = input.spawnCwd ?? input.cwd;
59 return executionCwd === undefined
60 ? `'${input.command}'`
61 : `'${input.command}' in '${executionCwd}'`;
62};
63
64export class ProcessSpawnError extends Schema.TaggedErrorClass<ProcessSpawnError>()(
65 "ProcessSpawnError",

Callers 5

messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85
messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected