generated from PlexSheep/rs-base
tokio
This commit is contained in:
parent
02c51d6e4a
commit
c5c79b784a
|
@ -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]]
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue