Function get_env
Source pub fn get_env(var_name: &str, error_id: &str) -> ShellExecResult<String>
Expand description
Read the content of a given environment variable
§Arguments
var_name - The name of the environment variable
error_id - A unique identifier for debugging purposes
§Returns
Ok(String) - The value of the environment variable
Err(ShellError) - An error if the variable is not set