WIP config system
This commit is contained in:
+17
@@ -1,4 +1,5 @@
|
|||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
|
//use ini::Ini;
|
||||||
use lofty::file::TaggedFileExt;
|
use lofty::file::TaggedFileExt;
|
||||||
use lofty::probe::Probe;
|
use lofty::probe::Probe;
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
@@ -36,6 +37,22 @@ enum Commands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
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 args = Args::parse();
|
||||||
let extra_files = [
|
let extra_files = [
|
||||||
"jpg", "png", "pdf", "log", "cue", "mp4", "lrc", "txt", "docx",
|
"jpg", "png", "pdf", "log", "cue", "mp4", "lrc", "txt", "docx",
|
||||||
|
|||||||
Reference in New Issue
Block a user