Skip to main content

resolve_env

Function resolve_env 

Source
pub fn resolve_env(override_env: Option<&str>) -> String
Expand description

Resolve the effective environment string.

Priority: explicit override > $GREENTIC_ENV > DEFAULT_ENV_ID ("local"). After resolution, applies the LEGACY_ENV_IDDEFAULT_ENV_ID compat alias: any value of dev is remapped to local with a once-per-process tracing::warn! unless DISABLE_ALIAS_ENV_VAR is set, in which case the resolution panics with a remediation hint.