feat: add oe

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-01-11 21:31:49 +01:00
commit ff55446e8c
7 changed files with 1022 additions and 0 deletions

1
crates/oe/.gitignore vendored Normal file
View File

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

12
crates/oe/Cargo.toml Normal file
View File

@@ -0,0 +1,12 @@
[package]
name = "oe"
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

31
crates/oe/src/main.rs Normal file
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 oe");
}
}
Ok(())
}