with procs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
mod code;
|
||||
mod network;
|
||||
mod procs;
|
||||
|
||||
pub struct Stats;
|
||||
|
||||
@@ -12,7 +13,11 @@ impl Stats {
|
||||
impl util::Cmd for Stats {
|
||||
fn cmd() -> eyre::Result<clap::Command> {
|
||||
let cmd = clap::Command::new("stats")
|
||||
.subcommands(&[code::Code::cmd()?, network::Network::cmd()?])
|
||||
.subcommands(&[
|
||||
code::Code::cmd()?,
|
||||
network::Network::cmd()?,
|
||||
procs::Procs::cmd()?,
|
||||
])
|
||||
.subcommand_required(true);
|
||||
|
||||
Ok(cmd)
|
||||
@@ -22,6 +27,7 @@ impl util::Cmd for Stats {
|
||||
match args.subcommand() {
|
||||
Some(("code", args)) => code::Code::exec(args),
|
||||
Some(("network", args)) => network::Network::exec(args),
|
||||
Some(("procs", args)) => procs::Procs::exec(args),
|
||||
_ => Stats::run(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user