feat: initial

This commit is contained in:
2023-04-07 01:12:51 +02:00
commit f3b497d183
6 changed files with 2363 additions and 0 deletions

37
src/main.rs Normal file
View File

@@ -0,0 +1,37 @@
mod conventional_commits;
mod gitea;
use clap::Command;
use tracing_subscriber::EnvFilter;
const VERSION: &'static str = "<dev>";
#[tokio::main]
async fn main() -> eyre::Result<()> {
color_eyre::install().unwrap();
tracing_subscriber::fmt()
.pretty()
.with_env_filter(EnvFilter::from_default_env())
.init();
let matches = clap::Command::new("releaser")
.version(VERSION)
.author("kjuulh <contact@kjuulh.io>")
.about("A CLI app for releasing software and managing versions")
.subcommand(Command::new("release").about("Release the software"))
.subcommand(
Command::new("validate").about("Validate the semantic versioning of the software"),
)
.subcommand(Command::new("bump").about("Bump the semantic versioning in git tags"))
.get_matches();
match matches.subcommand() {
Some(("release", sub_matches)) => {}
Some(("validate", sub_matches)) => {}
Some(("bump", sub_matches)) => {}
_ => unreachable!(),
}
Ok(())
}