MCPcopy
hub / github.com/coder/mux / runSpawnCommand

Function runSpawnCommand

src/node/runtime/DockerRuntime.ts:146–153  ·  view source on GitHub ↗

Run a command with array args to avoid shell interpolation for host/container paths.

(
  command: string,
  args: string[],
  timeoutMs = 30000,
  abortSignal?: AbortSignal
)

Source from the content-addressed store, hash-verified

144
145/** Run a command with array args to avoid shell interpolation for host/container paths. */
146function runSpawnCommand(
147 command: string,
148 args: string[],
149 timeoutMs = 30000,
150 abortSignal?: AbortSignal
151): Promise<DockerCommandResult> {
152 return runCommand(command, args, { timeoutMs, abortSignal });
153}
154
155/**
156 * Build Docker args for credential sharing.

Callers 2

setupCredentialsMethod · 0.85
forkWorkspaceMethod · 0.85

Calls 1

runCommandFunction · 0.70

Tested by

no test coverage detected