cod_cli/repo/
create.rs

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