From 63d4410fdfe7712faec287aee2f5c0ca288dc996 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Sat, 22 Feb 2025 00:48:41 +0100 Subject: replace Config crate with Figment -> better merging of default and config values --- src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 3325f80..302ba7a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,14 +46,15 @@ async fn main() -> Result<()> { } // Build default config - let mut cfg = BibiConfig::default(); + // let mut cfg = BibiConfig::default(); - if parsed_args.light_theme { - cfg.light_colors(); - } - // Merge values from config file if present - cfg.parse_config(&parsed_args)?; + // if parsed_args.light_theme { + // cfg.light_colors(); + // } + // // Merge values from config file if present + // cfg.parse_config(&parsed_args)?; + let mut cfg = BibiConfig::parse_config(&parsed_args)?; init_error_hooks()?; // Create an application. -- cgit v1.2.3