Compare commits

..

2 commits

Author SHA1 Message Date
660d4bd9da
Merge branch 'devel' of https://git.cscherr.de/PlexSheep/autocrate into devel
All checks were successful
cargo devel CI / cargo CI (push) Successful in 3m43s
2024-02-16 18:40:23 +01:00
c5c79b784a
tokio 2024-02-16 18:37:19 +01:00
3 changed files with 7 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "autocrate" name = "autocrate"
version = "0.1.0-prealpha.1" version = "0.1.0-prealpha.2"
edition = "2021" edition = "2021"
publish = true publish = true
authors = ["Christoph J. Scherr <software@cscherr.de>"] authors = ["Christoph J. Scherr <software@cscherr.de>"]
@ -30,6 +30,7 @@ serde = { version = "1.0.195", features = ["derive"] }
serde_yaml = "0.9.30" serde_yaml = "0.9.30"
tempfile = "3.9.0" tempfile = "3.9.0"
thiserror = "1.0.56" thiserror = "1.0.56"
tokio = { version = "1.36.0", features = ["tokio-macros", "rt-multi-thread", "macros"] }
url = { version = "2.5.0", features = ["serde"] } url = { version = "2.5.0", features = ["serde"] }
[[bin]] [[bin]]

View file

@ -147,7 +147,7 @@ impl Debug for Config {
write!( write!(
f, f,
"{}", "{}",
format!( format_args!(
"Config {{yaml: {:?}, repo_path: {:?}}}", "Config {{yaml: {:?}, repo_path: {:?}}}",
self.yaml, self.path self.yaml, self.path
) )

View file

@ -7,14 +7,14 @@ use autocrate::{
error::*, error::*,
}; };
fn main() -> Result<()> { #[tokio::main]
async fn main() -> Result<()> {
let cli = Cli::cli_parse(); let cli = Cli::cli_parse();
let cfg = Config::load(cli.clone())?; let cfg = Config::load(cli.clone())?;
match cli.command { match cli.command {
Commands::Changelog { .. } => { Commands::Changelog { .. } => {
println!("{}", Changelog::build(&cfg)?); println!("{}", Changelog::build(&cfg)?);
Ok(())
} }
Commands::Release { .. } => { Commands::Release { .. } => {
todo!() todo!()
@ -22,5 +22,6 @@ fn main() -> Result<()> {
Commands::Publish { .. } => { Commands::Publish { .. } => {
todo!() todo!()
} }
} };
Ok(())
} }