app config refactor
All checks were successful
Docker Image CI / test (push) Successful in 3m26s
Docker Image CI / push (push) Successful in 22m31s

This commit is contained in:
2024-10-25 12:02:53 +03:00
parent 1179840114
commit 9bf2103c47
6 changed files with 76 additions and 87 deletions

View File

@@ -78,19 +78,4 @@ impl VarsFile {
self.vars = Some(result);
Ok(())
}
#[allow(dead_code)]
fn apply(&self) -> Result<()> {
if let Some(vars) = self.vars.clone() {
for (key, value) in vars.iter() {
unsafe {
std::env::set_var(key, value);
}
}
} else {
Err(anyhow!("vars not parsed"))?
}
Ok(())
}
}