Skip to content

acquireBashExecutor

acquireBashExecutor(options): object

Defined in: packages/tools/src/bash/executor-pool.ts:243

Acquire a shared BashExecutor for (projectRoot, backend, policy). Throws if projectRoot is missing — fail closed rather than sharing across unknown roots.

Pass alreadyHeld: true when the caller already counts this key toward its dispose release — returns the live executor without bumping the refcount.

boolean

BashSandboxBackend

BashSandboxPolicy

string | undefined

object

executor: BashExecutor

key: string