WIP config system

This commit is contained in:
2026-11-22 01:48:06 +01:00
parent b4941442cd
commit dcbf0a7ba2
+17
View File
@@ -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<dyn std::error::Error>> {
//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",