work on generating main.go and use config not hardcoded vals

This commit is contained in:
cubixle
2021-06-18 13:58:58 +01:00
parent feff0c38eb
commit f435f65536
10 changed files with 124 additions and 76 deletions
+2 -2
View File
@@ -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)
}