Starting the Clap CLI parser

This commit is contained in:
2025-05-24 13:52:32 -05:00
parent 2067964a80
commit 408b0108a5
4 changed files with 37 additions and 2 deletions

24
src/cli.rs Normal file
View File

@@ -0,0 +1,24 @@
use clap::{
Parser,
Subcommand
};
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Args {
#[arg(short = 'o', long = "owner")]
repo_owner: Option<String>,
#[arg(short = 'n', long = "repo_name")]
repo_name: Option<String>,
#[command(subcommand)]
command: Option<Commands>
}
#[derive(Subcommand, Debug)]
enum Commands {
ListReleases{
#[arg(short, long)]
list: bool,
},
}