This commit is contained in:
Christoph J. Scherr 2024-02-16 18:37:19 +01:00
parent 02c51d6e4a
commit c5c79b784a
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 9 additions and 4 deletions

View File

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

View File

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