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.
Parameters
Section titled “Parameters”options
Section titled “options”alreadyHeld?
Section titled “alreadyHeld?”boolean
backend
Section titled “backend”policy
Section titled “policy”projectRoot
Section titled “projectRoot”string | undefined
Returns
Section titled “Returns”object
executor
Section titled “executor”executor:
BashExecutor
key:
string