generated from PlexSheep/rs-base
Compare commits
2 commits
db14cb7a8f
...
660d4bd9da
Author | SHA1 | Date | |
---|---|---|---|
660d4bd9da | |||
c5c79b784a |
3 changed files with 7 additions and 5 deletions
|
@ -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]]
|
||||
|
|
|
@ -147,7 +147,7 @@ impl Debug for Config {
|
|||
write!(
|
||||
f,
|
||||
"{}",
|
||||
format!(
|
||||
format_args!(
|
||||
"Config {{yaml: {:?}, repo_path: {:?}}}",
|
||||
self.yaml, self.path
|
||||
)
|
||||
|
|
|
@ -7,14 +7,14 @@ 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)?);
|
||||
Ok(())
|
||||
}
|
||||
Commands::Release { .. } => {
|
||||
todo!()
|
||||
|
@ -22,5 +22,6 @@ fn main() -> Result<()> {
|
|||
Commands::Publish { .. } => {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
};
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue