Skip to main content

Module env_overrides

Module env_overrides 

Source
Expand description

Process-environment snapshot for the CLI.

EnvOverrides captures every environment variable the CLI consults, read once at process start (EnvOverrides::from_process_env) and threaded through crate::context::CommandContext. Command code never calls std::env::var directly — tests construct the snapshot with EnvOverrides::from_vars instead of mutating process state.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

EnvOverrides
SessionEnv