pub struct TokioProcessRunner { /* private fields */ }Expand description
Host-process runner backed by tokio::process::Command.
The runner executes the exact validated argv supplied by
ProcessActionIntent, inherits the current process environment minus
variables excluded by ProcessEnvIsolation (MERRY_* by default), closes
stdin, captures bounded stdout/stderr through the shared process IO path,
and cooperatively cancels by killing the child process. Permission profiles
and sandbox constraints are selected by the owning backend, not by this
executor.
Implementations§
Source§impl TokioProcessRunner
impl TokioProcessRunner
Sourcepub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
pub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
Creates a Tokio-backed process runner whose process cwd values are resolved under a stable workspace root.
Sourcepub fn with_env_isolation(
self,
env_isolation: ProcessEnvIsolation,
) -> Result<Self, ProcessRunnerError>
pub fn with_env_isolation( self, env_isolation: ProcessEnvIsolation, ) -> Result<Self, ProcessRunnerError>
Sets the environment isolation policy applied before spawning child processes.
Sourcepub fn with_environment_overrides(
self,
overrides: impl IntoIterator<Item = (OsString, OsString)>,
) -> Result<Self, ProcessRunnerError>
pub fn with_environment_overrides( self, overrides: impl IntoIterator<Item = (OsString, OsString)>, ) -> Result<Self, ProcessRunnerError>
Validates and applies environment assignments while preserving all other non-isolated variables inherited from the Merry process.