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

Method exec

src/node/runtime/Runtime.ts:370–370  ·  view source on GitHub ↗

* Execute a bash command with streaming I/O * @param command The bash script to execute * @param options Execution options (cwd, env, timeout, etc.) * @returns Promise that resolves to streaming handles for stdin/stdout/stderr and completion promises * @throws RuntimeError if execution f

(command: string, options: ExecOptions)

Source from the content-addressed store, hash-verified

368 * @throws RuntimeError if execution fails in an unrecoverable way
369 */
370 exec(command: string, options: ExecOptions): Promise<ExecStream>;
371
372 /**
373 * Read file contents as a stream

Callers 15

getCommandGhostHintFunction · 0.65
extractLinesFromHtmlFunction · 0.65
highlightSearchMatchesFunction · 0.65
groupDiffLinesFunction · 0.65
extractShikiLinesFunction · 0.65
annotateHunkLinesFunction · 0.65
formatLineRangeCompactFunction · 0.65
parseGitHubPRUrlFunction · 0.65
computeCssColorToRgbMethod · 0.65
parseSizeLabelBytesFunction · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by 9

extractTagContentFunction · 0.52
getCurlMaxTimeFunction · 0.52
execMethod · 0.52
execMethod · 0.52
execMethod · 0.52
execMethod · 0.52
extractFunction · 0.52
extractMarkersFunction · 0.52