refactor: extract cli and config into separate modules

This commit is contained in:
objz committed 2025-06-14 17:32:18 +02:00
1 parent 03c87a8df0
commit 159b21d39a
17 files changed
+479 -2436

No files matched your search

+4 -3
View File
@@ -5,8 +5,6 @@ use std::fs;
use std::path::PathBuf;
use types::Config;
use crate::debug;
pub mod types;
pub fn get_config_path() -> PathBuf {
@@ -23,7 +21,10 @@ fn ensure_config_exists(default_path: &str) -> PathBuf {
}
fs::copy(default_path, &config_path).expect("Failed to copy default configuration file");
debug!("Default configuration copied to '{}'", config_path.display());
tracing::debug!(
"Default configuration copied to '{}'",
config_path.display()
);
}
config_path