23 lines
470 B
Rust
23 lines
470 B
Rust
use clap::{Parser, Subcommand};
|
|
|
|
#[derive(Debug, Parser)]
|
|
#[command(version, about, long_about = None)]
|
|
pub struct Args {
|
|
#[arg(short = 'o', long = "owner")]
|
|
pub repo_owner: Option<String>,
|
|
#[arg(short = 'n', long = "repo_name")]
|
|
pub repo_name: Option<String>,
|
|
|
|
#[command(subcommand)]
|
|
pub command: Commands,
|
|
}
|
|
|
|
#[derive(Debug, Subcommand)]
|
|
pub enum Commands {
|
|
ListReleases,
|
|
CreateRelease {
|
|
#[arg()]
|
|
name: String,
|
|
},
|
|
}
|