generated from PlexSheep/rs-base
Merge branch 'devel' of https://git.cscherr.de/PlexSheep/autocrate into devel
cargo devel CI / cargo CI (push) Successful in 3m48s
Details
cargo devel CI / cargo CI (push) Successful in 3m48s
Details
This commit is contained in:
commit
acc5381dd1
|
@ -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?;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue