moving around complete

This commit is contained in:
Sebastian Moser
2026-02-15 14:14:18 +01:00
parent 691e695659
commit 0b7e54dc1d
103 changed files with 12 additions and 26 deletions

View File

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

View File

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