From dcbf0a7ba25aa4098296fd528e56f6022352d66a Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sun, 22 Nov 2026 01:48:06 +0100 Subject: [PATCH] WIP config system --- src/main.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2036ea7..fff9492 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use clap::{Parser, Subcommand}; +//use ini::Ini; use lofty::file::TaggedFileExt; use lofty::probe::Probe; use std::ffi::OsStr; @@ -36,6 +37,22 @@ enum Commands { } fn main() -> Result<(), Box> { + //let mut conf = Ini::new(); + //conf.with_section(Some("General")) + // .set("target_directory", ""); + ////conf.write_to_file("conf.ini").unwrap(); + // + //let conf = Ini::load_from_file("conf.ini").unwrap(); + // + //let section = conf.section(Some("General")).unwrap(); + //println!("target_dir={:?}", section.get("target_directory")); + // + //for (_sec, prop) in &conf { + // for (key, value) in prop.iter() { + // println!("{:?}:{:?}", key, value); + // } + //} + // let args = Args::parse(); let extra_files = [ "jpg", "png", "pdf", "log", "cue", "mp4", "lrc", "txt", "docx",