diff options
| author | lukeflo | 2025-02-22 00:48:41 +0100 |
|---|---|---|
| committer | lukeflo | 2025-02-22 00:48:41 +0100 |
| commit | 63d4410fdfe7712faec287aee2f5c0ca288dc996 (patch) | |
| tree | cdc1c3a2fa012c9c194766c256572129ae069a92 /src/main.rs | |
| parent | 9cfed78e434a165d4cc01a869dfa7066b8b29819 (diff) | |
| download | bibiman-63d4410fdfe7712faec287aee2f5c0ca288dc996.tar.gz bibiman-63d4410fdfe7712faec287aee2f5c0ca288dc996.zip | |
replace Config crate with Figment -> better merging of default and config values
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 13 |
1 files changed, 7 insertions, 6 deletions
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. |
