feat: add base

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-28 21:32:37 +02:00
commit 55ae63599d
7 changed files with 701 additions and 0 deletions

1
crates/cuddle-release/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,12 @@
[package]
name = "cuddle-release"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
clap.workspace = true
dotenv.workspace = true

View File

@@ -0,0 +1,31 @@
use std::net::SocketAddr;
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(author, version, about, long_about = None, subcommand_required = true)]
struct Command {
#[command(subcommand)]
command: Option<Commands>,
}
#[derive(Subcommand)]
enum Commands {
Init
}
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenv::dotenv().ok();
tracing_subscriber::fmt::init();
let cli = Command::parse();
match cli.command.unwrap() {
Commands::Init => {
tracing::info!("hello cuddle-release");
}
}
Ok(())
}