some MizePart stuff and other stuff

This commit is contained in:
Sebastian Moser
2026-02-04 20:41:39 +01:00
parent fa103b3fa7
commit 7b6f177d14
29 changed files with 5585 additions and 816 deletions

8
apps/ppc/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "ppc"
version = "0.1.0"
edition = "2024"
[dependencies]
mize = { path = "../../parts/mize" }
js_part = { path = "../../parts/js" }

20
apps/ppc/src/main.rs Normal file
View File

@@ -0,0 +1,20 @@
use std::collections::HashMap;
use config::Config;
use deno_part::JsPart;
use mize::{Mize, MizeError, MizePart, MizeResult, add_parts, mize_err};
use clap::crate_version;
fn main() {
let mut mize = Mize::new();
add_parts!(&mut mize, Cli::new(&mut mize, "ppc"));
let cli = Cli::get(&mut mize);
cli.with_cmd(|cmd| cmd.version(crate_version!()).author("ppc").about("the ppc desktop program"));
cli.subcommand("test", |sub_matches| {
println!("test ppc...");
Ok(())
});
mize.run();
}