summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-07-25 20:20:23 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-07-25 20:20:23 +0200
commit357dceeb78c7d2e87d367c3c669a01889e7c2cb4 (patch)
tree1932b43a9c98385e07e4814b2e8dbc9d5dacac74
parentMerge pull request 'update dependencies' (#96) from update-deps into main (diff)
parentfix: `repo create` should not take `RepoArg` for name argument (diff)
downloadforgejo-cli-357dceeb78c7d2e87d367c3c669a01889e7c2cb4.tar.xz
forgejo-cli-357dceeb78c7d2e87d367c3c669a01889e7c2cb4.zip
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
-rw-r--r--src/repo.rs4
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()),