配置示例
This commit is contained in:
+31
@@ -41,3 +41,34 @@ mod func test1.proto
|
||||
|
||||
rootCmd.AddCommand(singleCmd)
|
||||
}
|
||||
|
||||
/*
|
||||
template_dir: "./templates/*.tpl" ## 模版 目录
|
||||
plugin: "plugin" ## 源代码文件夹地址
|
||||
mod_configs:
|
||||
- name: "func"
|
||||
worker: "proto"
|
||||
proto_name: "../gpb/game/pro_%s.proto"
|
||||
make_dir:
|
||||
- path: "game/src/%s"
|
||||
name: "src"
|
||||
out_files:
|
||||
- base_dir: "game/src/%s"
|
||||
file_name: "%s_port.erl"
|
||||
content_template: "ErlangPort"
|
||||
- name: "activity"
|
||||
worker: "proto"
|
||||
proto_name: "../gpb/game/pro_activity_%s.proto"
|
||||
make_dir:
|
||||
- path: "game/activity/mods/single_server/%s/src"
|
||||
name: "src"
|
||||
- path: "game/activity/mods/single_server/%s/.cfg"
|
||||
name: "cfg"
|
||||
out_files:
|
||||
- base_dir: "src"
|
||||
file_name: "%s_port.erl"
|
||||
content_template: "ActivityErlangPort"
|
||||
- base_dir: "src"
|
||||
file_name: "%s.erl"
|
||||
content_template: "ActivityErlang"
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user