summaryrefslogtreecommitdiffstats
path: root/src/release.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-09-05 19:16:05 +0200
committerCyborus <cyborus@cyborus.xyz>2024-09-05 19:53:41 +0200
commit7121e26215463165e382208d88b8d6d449c5b109 (patch)
tree955ea69bd4af3d7bda529832bd328ac474425242 /src/release.rs
parentMerge pull request 'improve host name consistency' (#124) from host-consisten... (diff)
downloadforgejo-cli-7121e26215463165e382208d88b8d6d449c5b109.tar.xz
forgejo-cli-7121e26215463165e382208d88b8d6d449c5b109.zip
feat: add aliases to keys file
Diffstat (limited to 'src/release.rs')
-rw-r--r--src/release.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/release.rs b/src/release.rs
index 49dd5b5..6512014 100644
--- a/src/release.rs
+++ b/src/release.rs
@@ -126,7 +126,12 @@ pub enum AssetCommand {
impl ReleaseCommand {
pub async fn run(self, keys: &mut KeyInfo, remote_name: Option<&str>) -> eyre::Result<()> {
- let repo = RepoInfo::get_current(remote_name, self.repo.as_ref(), self.remote.as_deref())?;
+ let repo = RepoInfo::get_current(
+ remote_name,
+ self.repo.as_ref(),
+ self.remote.as_deref(),
+ &keys,
+ )?;
let api = keys.get_api(repo.host_url()).await?;
let repo = repo
.name()