MCPcopy Create free account
hub / github.com/apache/maka / runShellWithBoundedTail

Function runShellWithBoundedTail

packages/runtime/src/shell-exec.ts:111–124  ·  view source on GitHub ↗
(
  command: string,
  options: BoundedShellOptions,
)

Source from the content-addressed store, hash-verified

109 * rejects when spawn or direct-root cleanup cannot be confirmed.
110 */
111export function runShellWithBoundedTail(
112 command: string,
113 options: BoundedShellOptions,
114): Promise<BoundedShellResult> {
115 const plan = buildShellSpawnPlan(
116 options.shell ?? defaultShellPlan(),
117 command,
118 options.env ?? process.env,
119 );
120 return runSpawnedProcessWithBoundedTail(plan.file, plan.args, plan.useShellOption, {
121 ...options,
122 ...(plan.env ? { env: plan.env } : {}),
123 });
124}
125
126/** Run an argv command directly, without a second shell parsing pass. */
127export function runProcessWithBoundedTail(

Callers 3

execMethod · 0.85
shell-exec.test.tsFile · 0.85

Calls 3

buildShellSpawnPlanFunction · 0.85
defaultShellPlanFunction · 0.85

Tested by

no test coverage detected