generated from PlexSheep/rs-base
tokio
This commit is contained in:
parent
02c51d6e4a
commit
c5c79b784a
|
@ -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]]
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -7,14 +7,15 @@ 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)?.to_string());
|
println!("{}", Changelog::build(&cfg)?.to_string());
|
||||||
Ok(())
|
// Ok(())
|
||||||
}
|
}
|
||||||
Commands::Release { .. } => {
|
Commands::Release { .. } => {
|
||||||
todo!()
|
todo!()
|
||||||
|
@ -22,5 +23,8 @@ fn main() -> Result<()> {
|
||||||
Commands::Publish { .. } => {
|
Commands::Publish { .. } => {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
println!("foo");
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue