Merge pull request 'repo create should not take RepoArg for name argument' (#98) from repo-create-name-arg into main

Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/98
This commit is contained in:
Cyborus 2024-07-25 18:20:23 +00:00
commit 357dceeb78

View file

@ -289,7 +289,7 @@ impl std::fmt::Display for RepoArgError {
#[derive(Subcommand, Clone, Debug)] #[derive(Subcommand, Clone, Debug)]
pub enum RepoCommand { pub enum RepoCommand {
Create { Create {
repo: RepoArg, repo: String,
// flags // flags
#[clap(long, short)] #[clap(long, short)]
@ -361,7 +361,7 @@ impl RepoCommand {
gitignores: None, gitignores: None,
issue_labels: None, issue_labels: None,
license: None, license: None,
name: format!("{}/{}", repo.owner, repo.name), name: repo,
object_format_name: None, object_format_name: None,
private: Some(private), private: Some(private),
readme: Some(String::new()), readme: Some(String::new()),