2024-01-27 23:26:49 +01:00
|
|
|
use autocrate::{
|
|
|
|
changelog::*,
|
|
|
|
config::{
|
|
|
|
cli::{Cli, Commands},
|
|
|
|
Config,
|
|
|
|
},
|
|
|
|
error::*,
|
|
|
|
};
|
2024-01-24 23:04:01 +01:00
|
|
|
|
|
|
|
fn main() -> Result<()> {
|
|
|
|
let cli = Cli::cli_parse();
|
2024-01-27 23:26:49 +01:00
|
|
|
let cfg = Config::load(cli.clone())?;
|
2024-01-24 23:04:01 +01:00
|
|
|
|
2024-01-27 23:26:49 +01:00
|
|
|
match cli.command {
|
|
|
|
Commands::Changelog { .. } => {
|
|
|
|
println!("{}", Changelog::build(&cfg)?.to_string());
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
2024-01-23 21:38:11 +01:00
|
|
|
}
|