Plugin
Plugin options are used to globally configure the plugin's behavior at runtime.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: <flag>=<value>,<flag>=<value>
strategy: all
--go_temporal_opt=<flag>=<value>,<flag>=<value>
Options
cli-categories
bool
Enables cli categories for grouping workflow, query, signal, and update commands.
Requires the cli-categories plugin option to be enabled.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: cli-enabled=true,cli-categories=true
strategy: all
protoc --go_temporal_opt=cli-enabled=true,cli-categories=true
cli-enabled
bool
Enables cli generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: cli-enabled=true
strategy: all
protoc --go_temporal_opt=cli-enabled=true
disable-workflow-input-rename
bool
Prior to v1.3.0, the generated workflow input struct used the <Workflow>Input
naming convention. This caused conflicts with workflow definitions that used input messages with the same naming convetion. In v1.3.0
, the naming convention for the generated workflow input struct was changed to <Workflow>WorkflowInput
. In order to continue to support schemas using the old convention, this option was added to enable the old naming convention.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: disable-workflow-input-rename=true
strategy: all
protoc --go_temporal_opt=disable-workflow-input-rename=true
docs-out
string
Enables doc generation by specifying the output path.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: docs-out=./proto/README.md
strategy: all
protoc --go_temporal_opt=docs-out=./proto/README.md
docs-template
string
Specifies the path to a custom template to use for generated documentation. See the guide for more details.
Requires the docs-out plugin option to be defined.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: docs-out=./proto/README.md,docs-template=./docs/custom.tpl
strategy: all
protoc --go_temporal_opt=docs-out=./proto/README.md,docs-template=./docs/custom.tpl
enable-codec
bool
Enables codec server generation
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: enable-codec=true
strategy: all
protoc --go_temporal_opt=enable-codec=true
enable-patch-support
bool
Enables support for protoc-gen-go-patch
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: enable-patch-support=true
strategy: all
protoc --go_temporal_opt=enable-patch-support=true
enable-xns
bool
Enables xns generation
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: enable-xns=true
strategy: all
protoc --go_temporal_opt=enable-xns=true
patches
string
Configures how particular Patches are introduced in generated code globally.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: patches=64_REMOVED;65_MARKER;66_ENABLED;67_DISABLED
strategy: all
protoc --go_temporal_opt=patches=64_REMOVED;65_MARKER;66_ENABLED;67_DISABLED
workflow-update-enabled
bool
Enables update support
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt: workflow-update-enabled=true
strategy: all
protoc --go_temporal_opt=workflow-update-enabled=true