core_lib/cli/
mod.rs

1#![allow(dead_code)]
2
3pub mod builders;
4pub mod client;
5pub mod stats;
6
7use clap::{Parser, Subcommand};
8
9#[derive(Parser, Debug, Clone)]
10#[command(author, version, about, long_about = None)]
11pub struct Cli {
12    #[command(subcommand)]
13    pub command: Commands,
14}
15
16#[derive(Subcommand, Debug, Clone)]
17pub enum Commands {
18    Run {
19        id: String,
20    },
21    Watch,
22    Ps {
23        #[arg(short = 'a', long)]
24        all: bool,
25    },
26
27    Stats,
28
29    Stop {
30        id: String,
31    },
32
33    Up {
34        id: String,
35    },
36
37    Rm {
38        id: String,
39    },
40
41    Logs {
42        #[arg(short = 'f', long)]
43        follow: bool,
44        id_or_name: Option<String>,
45    },
46}