1 2 3 4 5 6 7
pub fn read_env(name: &str, default_value: &str) -> String { std::env::var(name).unwrap_or_else(|_| default_value.into()) } pub fn current_dir() -> String { std::env::current_dir().unwrap().display().to_string() }