feat: add basic cli

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-23 21:53:25 +02:00
parent a4213ea61f
commit 5bc831da10
4 changed files with 200 additions and 1802 deletions

View File

@@ -11,9 +11,6 @@ tracing.workspace = true
tracing-subscriber.workspace = true
clap.workspace = true
dotenv.workspace = true
axum.workspace = true
serde = { version = "1.0.197", features = ["derive"] }
sqlx = { version = "0.7.3", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "time"] }
uuid = { version = "1.7.0", features = ["v4"] }
tower-http = { version = "0.5.2", features = ["cors", "trace"] }

View File

@@ -19,9 +19,9 @@ async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let cli = Command::parse();
tracing::debug!("Starting cli");
tracing::debug!("Starting cli");
if let Some(Commands::Hello { }) = cli.command {
if let Some(Commands::Hello {}) = cli.command {
println!("Hello!")
}