Ordering some files

This commit is contained in:
2023-06-18 13:53:45 +02:00
parent 0c3a3126f8
commit fd4affdb17
14 changed files with 70 additions and 38 deletions
+26 -14
View File
@@ -1,22 +1,34 @@
mod cli;
mod coords;
mod current_weather;
mod current_weather_extractor;
mod current_weather_output;
mod current_weather_output_model;
mod current_weather_print_params;
mod data_format;
mod ifconfig;
mod ip_api;
mod ip_location;
mod ip_location_cache;
mod open_meteo;
mod speed_unit;
mod temp_unit;
mod ifconfig {
pub mod ifconfig;
}
mod formats {
pub mod data_format;
pub mod speed_unit;
pub mod temp_unit;
}
mod ip_api {
pub mod ip_api;
pub mod ip_location;
pub mod ip_location_cache;
}
mod open_meteo {
pub mod current_weather;
pub mod open_meteo;
}
use billboard::{Alignment, Billboard};
use data_format::DataFormat;
use ip_location_cache::{get_from_cache, save_to_cache};
use formats::data_format::DataFormat;
use ip_api::ip_location_cache::{get_from_cache, save_to_cache};
use std::process::exit;
use structopt::StructOpt;
@@ -24,9 +36,9 @@ use cli::Arguments;
use coords::Coordinates;
use current_weather_extractor::CurrentWeatherExtractor;
use current_weather_print_params::CurrentWeatherPrintParams;
use ifconfig::extract_public_ip;
use ip_api::extract_coords_and_city;
use open_meteo::request_current_weather;
use ifconfig::ifconfig::extract_public_ip;
use ip_api::ip_api::extract_coords_and_city;
use open_meteo::open_meteo::request_current_weather;
fn main() {
let opts = Arguments::from_args();