rustfmt
This commit is contained in:
parent
c1fd1650c7
commit
ce84629fe7
3
TODO.org
3
TODO.org
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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")),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue