From 97df39d49a5a9792818293dd85bd0458c35261ab Mon Sep 17 00:00:00 2001 From: Rosyid Haryadi Date: Wed, 12 Mar 2025 12:40:55 +0700 Subject: init --- src/main.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..a533003 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,23 @@ +mod core; + +use clap::{Parser, Subcommand}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[command(subcommand)] + command: Command +} + +#[derive(Subcommand)] +enum Command { + Init, +} + + +fn main() { + let cli = Cli::parse(); + match &cli.command { + Command::Init => { todo!() } + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2