mirror of
https://github.com/cubixle/tuugen.git
synced 2026-04-30 11:08:40 +01:00
work on generating main.go and use config not hardcoded vals
This commit is contained in:
@@ -15,9 +15,9 @@ func runCommand(cmd string, args []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func GenerateProtos() error {
|
||||
func GenerateProtos(protoFile string) error {
|
||||
cmd := "protoc"
|
||||
args := []string{"-I", ".:${GOPATH}/src", "--go_out=.", "--go-grpc_out=.", "service.proto"}
|
||||
args := []string{"-I", ".:${GOPATH}/src", "--go_out=.", "--go-grpc_out=.", protoFile}
|
||||
return runCommand(cmd, args)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user