This commit is contained in:
Cadey Ratio 2020-05-30 15:17:08 -04:00
parent c1fd1650c7
commit ce84629fe7
3 changed files with 5 additions and 14 deletions

View File

@ -10,7 +10,8 @@
** DONE info ** DONE info
CLOSED: [2020-05-30 Sat 10:52] CLOSED: [2020-05-30 Sat 10:52]
** TODO release ** TODO release
** TODO upload ** DONE upload
CLOSED: [2020-05-30 Sat 15:15]
* Core Features * Core Features
** DONE Gitea API client ** DONE Gitea API client

View File

@ -3,14 +3,8 @@ use anyhow::{anyhow, Result};
pub(crate) async fn run(common: Common, tag: String) -> Result<()> { pub(crate) async fn run(common: Common, tag: String) -> Result<()> {
let cli = client(&common)?; let cli = client(&common)?;
let release = get_release_by_tag( let release =
&cli, get_release_by_tag(&cli, &common.server, &common.owner, &common.repo, &tag).await?;
&common.server,
&common.owner,
&common.repo,
&tag,
)
.await?;
let resp = cli let resp = cli
.delete( .delete(

View File

@ -135,11 +135,7 @@ async fn main() -> Result<()> {
tag, tag,
} => cmd::edit::run(common, description, release_meta, tag).await, } => cmd::edit::run(common, description, release_meta, tag).await,
Cmd::Info { common, json, tag } => cmd::info::run(common, json, tag).await, Cmd::Info { common, json, tag } => cmd::info::run(common, json, tag).await,
Cmd::Upload { Cmd::Upload { common, fname, tag } => cmd::upload::run(common, fname, tag).await,
common,
fname,
tag,
} => cmd::upload::run(common, fname, tag).await,
_ => Err(anyhow!("not implemented yet")), _ => Err(anyhow!("not implemented yet")),
} }