Tholp's bespoke website generator
at main 925 B view raw
1use clap::{Parser, Subcommand}; 2 3#[derive(Parser, Debug)] 4#[command(version, about, long_about = None)] 5pub struct ProgramArgs { 6 #[clap(subcommand)] 7 command: Command, 8 9 #[arg( 10 long, 11 default_value_t = false, 12 help = "Console output will not be colored" 13 )] 14 no_color: bool, 15} 16 17#[derive(Debug, Subcommand)] 18enum Command { 19 Init { 20 #[arg(short, long, default_value = ".")] 21 folder: String, 22 }, 23 24 Build { 25 #[arg( 26 short = 'f', 27 long, 28 default_value = "", 29 value_name = "PROJECT FILE", 30 help = "Override skidmark.toml" 31 )] 32 project_file: String, 33 }, 34 35 Clean { 36 #[arg( 37 short = 'f', 38 long, 39 default_value = "", 40 value_name = "PROJECT FILE", 41 help = "Override skidmark.toml" 42 )] 43 project_file: String, 44 }, 45}