pub struct EnvironmentInput {
pub treeboot_root_path: Option<OsString>,
pub codex_source_tree_path: Option<OsString>,
pub conductor_root_path: Option<OsString>,
pub superset_root_path: Option<OsString>,
pub conductor_default_branch: Option<OsString>,
pub treeboot_strict: Option<OsString>,
pub treeboot_dangerously_allow_sources_outside_root: Option<OsString>,
pub treeboot_dangerously_allow_targets_outside_worktree: Option<OsString>,
}Expand description
Explicit environment variable input used while resolving treeboot behavior.
This type only models the process environment variables that treeboot reads. Unknown process environment variables are intentionally not captured.
Fields§
§treeboot_root_path: Option<OsString>Root checkout override from TREEBOOT_ROOT_PATH.
codex_source_tree_path: Option<OsString>Root checkout compatibility override from CODEX_SOURCE_TREE_PATH.
conductor_root_path: Option<OsString>Root checkout compatibility override from CONDUCTOR_ROOT_PATH.
superset_root_path: Option<OsString>Root checkout compatibility override from SUPERSET_ROOT_PATH.
conductor_default_branch: Option<OsString>Default branch compatibility override from CONDUCTOR_DEFAULT_BRANCH.
treeboot_strict: Option<OsString>Runtime strict-mode override from TREEBOOT_STRICT.
treeboot_dangerously_allow_sources_outside_root: Option<OsString>Runtime source-boundary override from
TREEBOOT_DANGEROUSLY_ALLOW_SOURCES_OUTSIDE_ROOT.
treeboot_dangerously_allow_targets_outside_worktree: Option<OsString>Runtime target-boundary override from
TREEBOOT_DANGEROUSLY_ALLOW_TARGETS_OUTSIDE_WORKTREE.
Implementations§
Source§impl EnvironmentInput
impl EnvironmentInput
Sourcepub fn from_process_env() -> Self
pub fn from_process_env() -> Self
Captures treeboot’s known environment variables from the process.
Empty values are captured as-is; lookup helpers ignore empty values to preserve the CLI compatibility behavior.
Sourcepub fn root_candidates(&self) -> impl Iterator<Item = (&'static str, &OsStr)>
pub fn root_candidates(&self) -> impl Iterator<Item = (&'static str, &OsStr)>
Returns non-empty root path candidates in treeboot precedence order.
Sourcepub fn conductor_default_branch(&self) -> Option<&OsStr>
pub fn conductor_default_branch(&self) -> Option<&OsStr>
Returns the non-empty CONDUCTOR_DEFAULT_BRANCH value.
Trait Implementations§
Source§impl Clone for EnvironmentInput
impl Clone for EnvironmentInput
Source§fn clone(&self) -> EnvironmentInput
fn clone(&self) -> EnvironmentInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EnvironmentInput
impl Debug for EnvironmentInput
Source§impl Default for EnvironmentInput
impl Default for EnvironmentInput
Source§fn default() -> EnvironmentInput
fn default() -> EnvironmentInput
impl Eq for EnvironmentInput
Source§impl PartialEq for EnvironmentInput
impl PartialEq for EnvironmentInput
Source§fn eq(&self, other: &EnvironmentInput) -> bool
fn eq(&self, other: &EnvironmentInput) -> bool
self and other values to be equal, and is used by ==.