Skip to content

Commit

Permalink
Prefix enums with type and convert to upper case (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin authored Jun 9, 2020
1 parent 9864f04 commit 5d7f084
Show file tree
Hide file tree
Showing 26 changed files with 17,387 additions and 2,186 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ grpc: gogo-grpc

gogo-grpc: clean $(PROTO_OUT)
printf $(COLOR) "Compiling for gogo-gRPC..."
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogofaster_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogoslick_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)

gogo-protobuf: clean $(PROTO_OUT)
printf $(COLOR) "Compiling for gogo-protobuf..."
Expand Down Expand Up @@ -69,7 +69,7 @@ grpc-install: gogo-protobuf-install

gogo-protobuf-install: go-protobuf-install
printf $(COLOR) "Installing/updating gogo protobuf plugin..."
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
(cd && go get -u github.com/temporalio/gogo-protobuf/protoc-gen-gogoslick)

go-protobuf-install:
printf $(COLOR) "Installing/updating go protobuf plugin..."
Expand Down
221 changes: 128 additions & 93 deletions common/enum.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d7f084

Please sign in to comment.