some MizePart stuff and other stuff
This commit is contained in:
8
apps/ppc/Cargo.toml
Normal file
8
apps/ppc/Cargo.toml
Normal 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
20
apps/ppc/src/main.rs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user