diff --git a/src/main.rs b/src/main.rs index 8353256..0c9a81e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,8 +22,8 @@ async fn main() -> Result<()> { println!("{}", Changelog::build(&cfg)?); } Commands::Release { .. } => { - init_servers(&cfg).await?; - release(&cfg).await?; + let apis = init_servers(&cfg).await?; + release(&cfg, &mut apis).await?; } Commands::Publish { .. } => { publish(&cfg).await?; diff --git a/src/release/mod.rs b/src/release/mod.rs index 6c64bec..758e89e 100644 --- a/src/release/mod.rs +++ b/src/release/mod.rs @@ -1,6 +1,6 @@ use crate::{config::Config, error::*, serverapi::ApiCollection}; -pub async fn release(cfg: &Config, apis: ApiCollection) -> Result<()> { +pub async fn release(cfg: &Config, apis: &mut ApiCollection) -> Result<()> { // TODO: git tag // TODO: version bump // TODO: version select interactive