命令框架模块构建完成

This commit is contained in:
root
2026-03-11 23:43:24 +08:00
committed by Qichao.Sun
parent 8166e98cc7
commit 8b279df333
15 changed files with 472 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
use anyhow::Result;
#[derive(clap::Args)]
pub struct MigrateArgs {
/// 目标版本
#[arg(short, long)]
pub version: Option<String>,
}
pub fn run(args: MigrateArgs) -> Result<()> {
match args.version {
Some(v) => println!("🗄️ 迁移数据库到版本: {}", v),
None => println!("🗄️ 执行最新数据库迁移"),
}
Ok(())
}