aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorlukeflo2025-02-22 00:48:41 +0100
committerlukeflo2025-02-22 00:48:41 +0100
commit63d4410fdfe7712faec287aee2f5c0ca288dc996 (patch)
treecdc1c3a2fa012c9c194766c256572129ae069a92 /src/main.rs
parent9cfed78e434a165d4cc01a869dfa7066b8b29819 (diff)
downloadbibiman-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.rs13
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.