feat(init): 支持补齐内置模板空目录

新增 init 子命令,根据项目中的 world_*_packs.json 解析实际包目录并创建标准空目录。

改用 .empty-dirs 维护内置模板空目录清单,删除会污染用户项目和网易 Bedrock 加载流程的 .gitkeep 占位文件。
This commit is contained in:
2026-05-14 22:16:18 +08:00
parent 55e92c4b4f
commit de2b804aad
42 changed files with 197 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ fn main() {
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),
}
}