feat(boss-engine): 增加项目派生命令
新增 fork-boss-engine,从 AbyssBossEngine 源项目生成独立 BOSS 模组,并重建 UUID、命名空间和脚本包。 校验项目名称与命名空间,同时阻止输出目录落入源目录,避免路径穿越和递归复制。
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
mod boss_engine;
|
||||
mod commands;
|
||||
mod debug;
|
||||
mod entity;
|
||||
@@ -17,5 +18,6 @@ fn main() {
|
||||
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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user