feat: add basic cli

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

1994
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -14,4 +14,3 @@ tracing = { version = "0.1", features = ["log"] }
tracing-subscriber = { version = "0.3.18" }
clap = { version = "4", features = ["derive", "env"] }
dotenv = { version = "0.15" }
axum = { version = "0.7" }

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

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