nyra 0.1.1

Network Yield Runtime Assistant : system assistant for process control and monitoring.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::{Parser, Subcommand};

#[derive(Parser)]
pub struct Cli {
    #[command(subcommand)]
    pub command: Option<Commands>,
}

#[derive(Subcommand)]
pub enum Commands {
    Read { path: String },
    Run { program: String },
    List,
    Stop { pid: u32 },
    Describe { pid: u32 },
    Stats { pid: u32 },
}