1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use crate::types::api::privacy_type::Privacy;
use clap::Parser;
/// Create a new repository
#[derive(Parser, Debug)]
pub struct RepoCreateArgs {
/// Main branch to init repository with (usually "main")
#[arg(id = "default-branch", long)]
pub default_branch: Option<String>,
/// Repository description
#[arg(short, long)]
pub description: Option<String>,
/// Repository name
#[arg(short, long)]
pub name: Option<String>,
/// Repository visibility
#[arg(short, long, value_enum, value_name = "VISIBILITY")]
pub private: Option<Privacy>,
}