use anyhow::Result;
use term_painter::{Color::*, ToStyle};
use crate::display::{current::Current, forecast::Forecast};
use crate::Product;
mod border;
mod current;
mod forecast;
mod weathercode;
mod wind;
pub fn render(product: &Product, add_forecast: bool) -> Result<()> {
Current::render(product)?;
if add_forecast {
Forecast::render_forecast(product)?;
}
BrightBlack.with(|| println!(" Weather data by Open-Meteo.com"));
NotSet.with(|| println!());
Ok(())
}