Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: tools/cmd/cproto/main.go

Issue 1571393006: server/discovery: add discovery service (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@prpc-server
Patch Set: rebased Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/prpc/pb.discovery_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cmd/cproto/main.go
diff --git a/tools/cmd/cproto/main.go b/tools/cmd/cproto/main.go
index 4300c8d4d931ba9a83ded82293aefb31abd73c0c..6a2b90d333a9dd58aba5fcd7e8cb5237a6dbaf97 100644
--- a/tools/cmd/cproto/main.go
+++ b/tools/cmd/cproto/main.go
@@ -23,7 +23,10 @@ import (
)
var (
- verbose = flag.Bool("verbose", false, "print debug messages to stderr")
+ verbose = flag.Bool("verbose", false, "print debug messages to stderr")
+ withDiscovery = flag.Bool(
+ "discovery", true,
+ "generate pb.discovery.go file")
withGithub = flag.Bool(
"with-github", true,
"include $GOPATH/src/github.com in proto search path")
@@ -156,6 +159,9 @@ func run(c context.Context, dir string) error {
}
}
+ if !*withDiscovery {
+ return nil
+ }
// Generate pb.prpc.go
discoveryFile := "pb.discovery.go"
if *renameToTestGo {
« no previous file with comments | « server/prpc/pb.discovery_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698