summaryrefslogtreecommitdiffstats
path: root/src/issues.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2023-12-13 02:17:38 +0100
committerCyborus <cyborus@noreply.codeberg.org>2023-12-13 02:17:38 +0100
commitc4810e3e934a54deac93b1c9abb78453aa8ffd91 (patch)
treef04f1da152391704abeb7dafff6ee96936b00690 /src/issues.rs
parentMerge pull request 'add issue search' (#9) from search-issues into main (diff)
parentformat (diff)
downloadforgejo-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.rs4
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?,