Early gui impl, basic window management
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
fn main() {
|
||||
let args = std::env::args();
|
||||
if args.len() > 1 {
|
||||
// gui
|
||||
} else {
|
||||
// cli
|
||||
}
|
||||
use clap::Parser;
|
||||
|
||||
mod cli;
|
||||
mod logger;
|
||||
|
||||
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)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user