( command: string, options: BoundedShellOptions, )
| 109 | * rejects when spawn or direct-root cleanup cannot be confirmed. |
| 110 | */ |
| 111 | export 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. */ |
| 127 | export function runProcessWithBoundedTail( |
no test coverage detected