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