Skip to main content

Plugin

Plugin options are used to globally configure the plugin's behavior at runtime.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: <flag>=<value>,<flag>=<value>
strategy: all

Options

cli-categories

bool

Enables cli categories for grouping workflow, query, signal, and update commands.

info

Requires the cli-categories plugin option to be enabled.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: cli-enabled=true,cli-categories=true
strategy: all

cli-enabled

bool

Enables cli generation.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: cli-enabled=true
strategy: all

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.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: disable-workflow-input-rename=true
strategy: all

docs-out

string

Enables doc generation by specifying the output path.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: docs-out=./proto/README.md
strategy: all

docs-template

string

Specifies the path to a custom template to use for generated documentation. See the guide for more details.

info

Requires the docs-out plugin option to be defined.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: docs-out=./proto/README.md,docs-template=./docs/custom.tpl
strategy: all

enable-codec

bool

Enables codec server generation

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: enable-codec=true
strategy: all

enable-patch-support

bool

Enables support for protoc-gen-go-patch

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: enable-patch-support=true
strategy: all

enable-xns

bool

Enables xns generation

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: enable-xns=true
strategy: all

patches

string

Configures how particular Patches are introduced in generated code globally.

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: patches=64_REMOVED;65_MARKER;66_ENABLED;67_DISABLED
strategy: all

workflow-update-enabled

bool

Enables update support

buf.gen.yaml
plugins:
- plugin: go_temporal
out: gen
opt: workflow-update-enabled=true
strategy: all