use super::hazard;
use super::error;
use utils::app_config::AppConfig;
use utils::error::Result;
pub fn hazard() -> Result<()> {
let random_hazard: bool = hazard::generate_hazard()?;
if random_hazard {
println!("You got it right!");
} else {
println!("You got it wrong!");
}
Ok(())
}
pub fn config() -> Result<()> {
let config = AppConfig::fetch()?;
println!("{:#?}", config);
Ok(())
}
pub fn simulate_error() -> Result<()> {
log::info!("We are simulating an error");
error::simulate_error()?;
Ok(())
}