remux/src/env.rs

11 lines
229 B
Rust
Raw Normal View History

2024-03-08 14:02:23 -05:00
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())
}