Skip to content

Commit 14622d3

Browse files
committed
Document const DefaultProtoc
1 parent fd823e4 commit 14622d3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dsl/meta.go

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import (
55
"goa.design/goa/v3/expr"
66
)
77

8+
// DefaultProtoc is the default command to be invoked for generating code from protobuf schemas.
9+
// You may use this to prepend arguments/flags to the command or revert to the default command.
10+
//
11+
// See also [Meta]; this is useful with the "protoc:cmd" key.
812
const DefaultProtoc = expr.DefaultProtoc
913

1014
// Meta defines a set of key/value pairs that can be assigned to an object. Each

expr/root.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
// Root is the root object built by the DSL.
1212
var Root = new(RootExpr)
1313

14+
// DefaultProtoc is the default command to be invoked for generating code from protobuf schemas.
1415
const DefaultProtoc = "protoc"
1516

1617
type (

0 commit comments

Comments
 (0)