Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data Environment

process/environment::Environment


Traits

∈ Deserialize
∈ Equality
∈ PartialEquality
∈ Serialize


Execution environment for a subprocess.

  • working_directory: optional directory to set as the process working directory.
  • clear_env: when true, the subprocess inherits no environment variables from the parent process.
  • variables: the environment variables to set.
  • expand_variables: when true, ${VAR} references in variable values are expanded using the parent environment.
  • secret_variables: the environment variables whose values are secrets, see |with_secret_variables.
  • secret_stdin: a secret written to the standard input of commands, see |with_secret_stdin.

Secrets are revealed by the treatment running each command, and never put in command arguments.