diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-10-21 18:11:49 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-10-21 18:11:49 +0300 |
| commit | 26092b2043649a466d07fbb87078adc8c8612621 (patch) | |
| tree | 965a76cb59a9f6afba7c7f4f8a48cd599d698ddb /src/main.rs | |
| parent | 1ad9fda27ca8757dfc6a3d4ee0f43232146b7f98 (diff) | |
Started refactoring bad code. Edited: `parser.rs`, `main.rs`, switched weather-structs to `shared.rs`
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index db40b5c..ffa33d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,10 +35,17 @@ extern crate image; use clap::{Arg, Command}; use termimage::{Options}; -mod configmanager; mod parser; +use parser::{get_config, Config}; + +// use crate::configmanager::{Config, handle_config}; + +fn process_config() -> Result<Config, Box<dyn std::error::Error>> { + get_config(); + + Ok(Config::load()?) +} -use crate::configmanager::{Config, handle_config}; fn main() -> Result<(), Box<dyn std::error::Error>> { let config = Config::load()?; |
