diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2023-12-13 02:17:38 +0100 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2023-12-13 02:17:38 +0100 |
commit | c4810e3e934a54deac93b1c9abb78453aa8ffd91 (patch) | |
tree | f04f1da152391704abeb7dafff6ee96936b00690 /src/issues.rs | |
parent | Merge pull request 'add issue search' (#9) from search-issues into main (diff) | |
parent | format (diff) | |
download | forgejo-cli-c4810e3e934a54deac93b1c9abb78453aa8ffd91.tar.xz forgejo-cli-c4810e3e934a54deac93b1c9abb78453aa8ffd91.zip |
Merge pull request 'add git remote selection flag' (#10) from select-remote into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/10
Diffstat (limited to 'src/issues.rs')
-rw-r--r-- | src/issues.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/issues.rs b/src/issues.rs index 13f9590..cb33549 100644 --- a/src/issues.rs +++ b/src/issues.rs @@ -83,9 +83,9 @@ pub enum ViewCommand { } impl IssueCommand { - pub async fn run(self, keys: &crate::KeyInfo) -> eyre::Result<()> { + pub async fn run(self, keys: &crate::KeyInfo, remote_name: Option<&str>) -> eyre::Result<()> { use IssueCommand::*; - let repo = RepoInfo::get_current()?; + let repo = RepoInfo::get_current(remote_name)?; let api = keys.get_api(&repo.host_url())?; match self { Create { title, body } => create_issue(&repo, &api, title, body).await?, |