diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-07-25 20:12:20 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-07-25 20:12:20 +0200 |
commit | e77e978629999e1837d36a0e303cf55a91895dbe (patch) | |
tree | 1932b43a9c98385e07e4814b2e8dbc9d5dacac74 | |
parent | Merge pull request 'update dependencies' (#96) from update-deps into main (diff) | |
download | forgejo-cli-e77e978629999e1837d36a0e303cf55a91895dbe.tar.xz forgejo-cli-e77e978629999e1837d36a0e303cf55a91895dbe.zip |
fix: `repo create` should not take `RepoArg` for name argument
-rw-r--r-- | src/repo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repo.rs b/src/repo.rs index 6ede776..336e868 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -289,7 +289,7 @@ impl std::fmt::Display for RepoArgError { #[derive(Subcommand, Clone, Debug)] pub enum RepoCommand { Create { - repo: RepoArg, + repo: String, // flags #[clap(long, short)] @@ -361,7 +361,7 @@ impl RepoCommand { gitignores: None, issue_labels: None, license: None, - name: format!("{}/{}", repo.owner, repo.name), + name: repo, object_format_name: None, private: Some(private), readme: Some(String::new()), |