Files
emod-cli/src/main.rs
Blank038 bc9221d4cc feat(boss-engine): 增加项目派生命令
新增 fork-boss-engine,从 AbyssBossEngine 源项目生成独立 BOSS 模组,并重建 UUID、命名空间和脚本包。

校验项目名称与命名空间,同时阻止输出目录落入源目录,避免路径穿越和递归复制。
2026-07-21 20:17:49 +08:00

24 lines
714 B
Rust

mod boss_engine;
mod commands;
mod debug;
mod entity;
mod error;
mod template;
mod utils;
use crate::commands::{Cli, Commands};
use clap::Parser;
fn main() {
let cli = Cli::parse();
match &cli.command {
Commands::Release(args) => commands::release::execute(args),
Commands::Create(args) => commands::create::execute(args),
Commands::Init(args) => commands::init::execute(args),
Commands::Components(args) => commands::components::execute(args),
Commands::Debug(args) => commands::debug::execute(args),
Commands::Bbmodel(args) => commands::bbmodel::execute(args),
Commands::ForkBossEngine(args) => commands::fork_boss_engine::execute(args),
}
}