-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
26 lines (22 loc) · 734 Bytes
/
main.go
File metadata and controls
26 lines (22 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
import (
"flag"
"github.com/finishy1995/codegenerator/generator"
"github.com/finishy1995/codegenerator/generator/define"
"github.com/finishy1995/codegenerator/generator/logic"
)
var tplDir = flag.String("tpl", "./example/demo/tpl", "the tpl file directory")
var outputDir = flag.String("o", "./build", "the output file directory")
func main() {
flag.Parse()
//log.SetLevel(log.DEBUG)
//dataloader.AddDataLoader(".proto", proto.NewLoader())
//data := dataloader.LoadFromFile("./extension/dataloader/proto/account.proto")
d := define.NewDictionary()
//d.SetData(data)
//define.SetLineFeedWindows()
logic.RegisterAll()
//fmt.Println(d.String())
m := generator.NewMission(d, *tplDir, *outputDir)
m.Run()
}