/// Take the Environment variable and delimitize it. If the value has a delimiter, /// extract it into some strings pub fn delimitize(var: &crate::EnvVar) -> Result, std::io::Error> { if var.has_delimiter { Ok(var .value .split(var.delimiter) .map(|c| c.parse::().unwrap()) .collect()) } else { Err(std::io::Error::other( "Environment variable does not have a delimiter", )) } }