You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
440 B
24 lines
440 B
6 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"flag"
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/bilibili/kratos/tool/protobuf/pkg/gen"
|
||
|
"github.com/bilibili/kratos/tool/protobuf/pkg/generator"
|
||
|
bmgen "github.com/bilibili/kratos/tool/protobuf/protoc-gen-bm/generator"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
versionFlag := flag.Bool("version", false, "print version and exit")
|
||
|
flag.Parse()
|
||
|
if *versionFlag {
|
||
|
fmt.Println(generator.Version)
|
||
|
os.Exit(0)
|
||
|
}
|
||
|
|
||
|
g := bmgen.BmGenerator()
|
||
|
gen.Main(g)
|
||
|
}
|