MCPcopy Index your code
hub / github.com/coder/mux / runCoderJsonCommand

Method runCoderJsonCommand

src/node/services/coderService.ts:1125–1135  ·  view source on GitHub ↗
(
    args: string[],
    options: { timeoutMs?: number; signal?: AbortSignal } = {}
  )

Source from the content-addressed store, hash-verified

1123 }
1124
1125 private async runCoderJsonCommand(
1126 args: string[],
1127 options: { timeoutMs?: number; signal?: AbortSignal } = {}
1128 ): Promise<string> {
1129 using proc = execFileAsync("coder", args, {
1130 timeoutMs: options.timeoutMs ?? 30_000,
1131 signal: options.signal,
1132 });
1133 const { stdout } = await proc.result;
1134 return stdout;
1135 }
1136
1137 /**
1138 * Get workspace status using control-plane query.

Callers 8

getCoderInfoMethod · 0.95
getWhoamiDataMethod · 0.95
getPresetParamNamesMethod · 0.95
listTemplatesMethod · 0.95
listPresetsMethod · 0.95
workspaceExistsMethod · 0.95
listWorkspacesMethod · 0.95

Calls 1

execFileAsyncFunction · 0.90

Tested by

no test coverage detected