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
CLOSED: [2020-05-30 Sat 10:52]
** TODO release
** TODO upload
** DONE upload
CLOSED: [2020-05-30 Sat 15:15]
* Core Features
** DONE Gitea API client

View File

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

View File

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