smbpndk_cli/cli/
mod.rs

1use crate::{account, project};
2use clap::{Parser, Subcommand};
3
4#[derive(Parser)]
5#[clap(author, version, about)]
6pub struct Cli {
7    /// Log level: trace, debug, info, warn, error, off
8    #[clap(short, long, global = true)]
9    pub log_level: Option<String>,
10
11    #[clap(subcommand)]
12    pub command: Commands,
13}
14
15#[derive(Subcommand)]
16pub enum Commands {
17    #[clap(about = "Manage your account.")]
18    Account {
19        #[clap(subcommand)]
20        command: account::cli::Commands,
21    },
22
23    #[clap(about = "Manage your projects. Add, delete, edit. Need authentication.")]
24    Project {
25        #[clap(subcommand)]
26        command: project::cli::Commands,
27    },
28    /*
29    #[clap(about = "Manage your Oten authentication app. Add, delete, edit. Need authentication.")]
30    Oten {
31        #[clap(subcommand)]
32        command: app_oten::cli::Commands,
33    },
34     */
35    // Function
36    /*
37    FunApp {
38        #[clap(subcommand)]
39        command: fun_app::cli::Commands,
40    }, */
41    // Package
42    /*
43    PktApp {
44        #[clap(subcommand)]
45        command: pkt_app::cli::Commands,
46    }, */
47    // Relational database
48    /*
49    RdbApp {
50        #[clap(subcommand)]
51        command: rdb_app::cli::Commands,
52    }, */
53}