nu_engine::env

Function env_to_string

Source
pub fn env_to_string(
    env_name: &str,
    value: &Value,
    engine_state: &EngineState,
    stack: &Stack,
) -> Result<String, ShellError>
Expand description

Translate one environment variable from Value to String

Returns Ok(None) if the env var is not