This commit is contained in:
Sebastian Moser
2026-02-20 11:28:45 +01:00
parent 48e691f163
commit f2e73e677a
124 changed files with 2800 additions and 2443 deletions

View File

@@ -0,0 +1,35 @@
use std::collections::HashMap;
use clap::Command;
use clap::crate_version;
use mize::{Mize, MizeResult};
fn main() {
let mut mize = Mize::new().expect("failed to create mize instance");
#[cfg(feature = "target-os")]
os_main(&mut mize);
mize.run();
}
#[cfg(feature = "target-os")]
fn os_main(mize: &mut Mize) -> MizeResult<()> {
marts::cli(mize)?;
let mut cli = mize.get_part_native::<marts::CliPart>("cli")?;
cli.with_cmd(|_, cmd| {
Ok(cmd
.version(crate_version!())
.name("ppc")
.author("ppc")
.about("the ppc desktop program"))
})?;
cli.subcommand(Command::new("test"), |_| {
println!("test ppc...");
Ok(())
});
Ok(())
}