thingz/commands/mod.rs
1extern crate log;
2use clap::{Parser, Subcommand};
3
4#[derive(Parser)]
5#[command(author, version, about, long_about = None)]
6#[command(propagate_version = true)]
7pub struct Cli {
8 /// config file
9 #[arg(short, long, value_name="config file", default_value="")]
10 pub config: String,
11
12 #[command(subcommand)]
13 pub command: Commands,
14}
15
16#[derive(Subcommand)]
17pub enum Commands {
18 /// mqtt client service
19 Mqtt,
20 /// S3 client service
21 S3,
22}