weather_util_rust 0.15.1

CLI tool to pull weather data from openweathermap.org, intended to replace the debian package weather-util
Documentation
#[cfg(feature = "cli")]
use weather_util_rust::{config::Config, weather_opts::WeatherOpts, Error};

#[cfg(not(tarpaulin_include))]
#[cfg(feature = "cli")]
#[tokio::main]
async fn main() -> Result<(), Error> {
    let config = Config::init_config(None)?;

    match tokio::spawn(async move { WeatherOpts::parse_opts(&config).await })
        .await
        .unwrap()
    {
        Ok(_) => Ok(()),
        Err(Error::InvalidInputError(e)) => {
            let help_message = WeatherOpts::api_help_msg();
            println!("{e}\n{help_message}");
            Ok(())
        }
        Err(e) => Err(e),
    }
}

#[cfg(not(tarpaulin_include))]
#[cfg(not(feature = "cli"))]
fn main() -> Result<(), Error> {
    Ok(())
}