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
cli-v3
bool
Use urfave/cli/v3 for CLI generation. Default is false, which uses urfave/cli/v2.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- cli-enabled=true
- cli-v3=true
strategy: all
protoc --go_temporal_opt=cli-enabled=true,cli-v3=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
ignore-acronyms
string
Semicolon-delimited list of acronyms to ignore during CamelCase renaming.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- ignore-acronyms=AWS;SQL
strategy: all
protoc --go_temporal_opt=ignore-acronyms=AWS;SQL
nexus
bool
Enables experimental Nexus generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- nexus=true
strategy: all
protoc --go_temporal_opt=nexus=trues
nexus-exclude-service-tags
string
Semicolon-delimited list of Nexus service tags to exclude from generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- nexus=true
- nexus-exclude-service-tags=disabled;internal
strategy: all
protoc --go_temporal_opt=nexus=true,nexus-exclude-service-tags=disabled;internal
nexus-exclude-operation-tags
string
Semicolon-delimited list of Nexus operation tags to exclude from generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- nexus=true
- nexus-exclude-operation-tags=disabled;internal
strategy: all
protoc --go_temporal_opt=nexus=true,nexus-exclude-operation-tags=disabled;internal
nexus-include-service-tags
string
Semicolon-delimited list of Nexus service tags to include in generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- nexus=true
- nexus-include-service-tags=enabled;internal
strategy: all
protoc --go_temporal_opt=nexus=true,nexus-include-service-tags=enabled;internal
nexus-include-operation-tags
string
Semicolon-delimited list of Nexus operation tags to include in generation.
- Buf
- Protoc
plugins:
- plugin: go_temporal
out: gen
opt:
- nexus=true
- nexus-include-operation-tags=enabled;internal
strategy: all
protoc --go_temporal_opt=nexus=true,nexus-include-operation-tags=enabled;internal
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