LocalEnvironment
An Environment that runs commands in local /bin/sh subprocesses and reads and writes files in one workspace directory shared by every caller, so it ignores the per-call Context.
Without a workingDir, initialize creates a temporary directory that close deletes; a given directory is created if missing and never deleted. There is no sandboxing: commands run with the host's privileges and environment variables (filtered by inheritedEnvVarAllowlist, with envVars on top), and on timeout or cancellation they get SIGTERM, then SIGKILL.
Parameters
Absolute path to the workspace directory. If null or empty, a temporary directory is created during initialize.
Extra environment variables for every command, applied after the allowlist.
Names of the host's environment variables commands may inherit; null inherits all of them. PATH is always inherited, so commands find the host's programs.
Types
Fluent builder for LocalEnvironment, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.