Add CLI application with database migration and entity generation commands

- Introduced a new CLI application in the `apps/cli` directory.
- Implemented commands for database migration and entity generation.
- Updated `Cargo.toml` files to include necessary dependencies.
- Enhanced the `justfile` to facilitate CLI command execution.
- Modified workspace configuration to include the new CLI application.
This commit is contained in:
GW_MC
2025-11-13 21:26:31 +08:00
parent 373065c95f
commit 829c4ef3e3
9 changed files with 517 additions and 13 deletions

16
apps/cli/Cargo.toml Normal file
View File

@@ -0,0 +1,16 @@
[package]
name = "cli"
version = "0.1.0"
edition = "2024"
[dependencies]
async-trait = "0.1.89"
container-simulate = { path = "../container" }
migration = {path = "../../public/migration"}
shared = {path = "../../public/shared"}
testcontainers = "0.24.0"
tokio = { version = "1.47.0", features = ["full"] }
url = "2.5.7"
clap = { version = "4.5.48", features = ["derive", "env"] }
path-clean = "1.0.1"
once_cell = "1.21.3"