created env module

This commit is contained in:
Valerie Wolfe 2024-03-08 14:02:23 -05:00
parent aa4c26ba4c
commit 71b33ca274

10
src/env.rs Normal file
View file

@ -0,0 +1,10 @@
use std::env::{ set_var, var };
pub type ENV_VAR = (&'static str, &'static str);
pub static ATTACH_SYMBOL: ENV_VAR = ("ATTACH_SYMBOL", "*");
pub fn env_var(var: ENV_VAR) -> String {
var(var.0).unwrap_or(var.1.to_string())
}