pub fn validate_environment(environment: &str) -> Result<(), InvalidEnvironment>
Given a string checks if the environment name is generally valid.