Merge branch 'devel' of https://git.cscherr.de/PlexSheep/autocrate into devel
cargo devel CI / cargo CI (push) Successful in 3m48s Details

This commit is contained in:
Christoph J. Scherr 2024-02-16 20:03:20 +01:00
commit acc5381dd1
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 4 additions and 6 deletions

View File

@ -4,12 +4,10 @@ use autocrate::{
cli::{Cli, Commands}, cli::{Cli, Commands},
Config, Config,
}, },
release::release,
serverapi::init_servers,
publish::publish,
error::*, error::*,
publish::publish, publish::publish,
release::release, release::release,
serverapi::init_servers,
}; };
#[tokio::main] #[tokio::main]
@ -22,8 +20,8 @@ async fn main() -> Result<()> {
println!("{}", Changelog::build(&cfg)?); println!("{}", Changelog::build(&cfg)?);
} }
Commands::Release { .. } => { Commands::Release { .. } => {
init_servers(&cfg).await?; let mut apis = init_servers(&cfg).await?;
release(&cfg).await?; release(&cfg, &mut apis).await?;
} }
Commands::Publish { .. } => { Commands::Publish { .. } => {
publish(&cfg).await?; publish(&cfg).await?;

View File

@ -1,6 +1,6 @@
use crate::{config::Config, error::*, serverapi::ApiCollection}; 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: git tag
// TODO: version bump // TODO: version bump
// TODO: version select interactive // TODO: version select interactive