feat: add bare

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-23 21:51:42 +02:00
parent bf7a7db868
commit a4213ea61f
44 changed files with 1047 additions and 4335 deletions

29
crates/cuddle/src/main.rs Normal file
View File

@@ -0,0 +1,29 @@
use anyhow::Context;
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 {
Hello {},
}
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenv::dotenv().ok();
tracing_subscriber::fmt::init();
let cli = Command::parse();
tracing::debug!("Starting cli");
if let Some(Commands::Hello { }) = cli.command {
println!("Hello!")
}
Ok(())
}