use std::collections::HashMap;
pub struct Environment {
variables: HashMap<String, String>,
}
impl Environment {
pub fn new() -> Self {
Self {
variables: HashMap::new(),
}
}
pub fn get_base_env(&self) -> HashMap<String, String> {
self.variables.clone()
}
pub fn set(&mut self, key: String, value: String) {
self.variables.insert(key, value);
}
}
impl Default for Environment {
fn default() -> Self {
Self::new()
}
}