1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use clap::{Args, Parser, Subcommand};

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
pub struct Cli {
    #[command(subcommand)]
    pub command: Commands,
}

#[derive(Subcommand, Debug)]
pub enum Commands {
    Format(FormatCommandArguments),
    /// Create a new mdsf config
    Init,
    /// Generate json schema
    Schema,
}

/// Run formatters on input files
#[derive(Args, Debug)]
pub struct FormatCommandArguments {
    #[arg()]
    pub path: std::path::PathBuf,
}