Settings, took care of warnings

This commit is contained in:
2024-11-15 12:33:11 +02:00
parent 14ee1e69bc
commit a060161c64
26 changed files with 323 additions and 126 deletions

View File

@@ -1,5 +1,3 @@
use std::path::{Path, PathBuf};
use clap::Parser;
mod cli;
@@ -10,12 +8,8 @@ type Result<T> = anyhow::Result<T>;
fn main() -> Result<()> {
let cliargs = cli::CliArgs::parse();
logger::init(&cliargs);
let manifest_path;
if let Some(mp) = cliargs.manifest_path() {
manifest_path = mp;
} else {
manifest_path = PathBuf::from("manifest.json");
};
xmpd_gui::start(manifest_path)?;
log::debug!("Cli: {cliargs:?}");
xmpd_settings::Settings::get()?.load(Some(cliargs.settings_path()))?;
xmpd_gui::start(cliargs.manifest_path())?;
Ok(())
}