Bug
Top-level (ungrouped) commands generate examples that double the binary name:
growthbook growthbook get-SDK-payload --key <key>
growthbook growthbook post-copy-transform --visual-changeset-id <id> ...
Root cause (Speakeasy)
For operations with no command group, the example template prefixes both the app name and the binary name — both growthbook — yielding the doubled prefix.
Stopgap fix (retire when upstream is fixed)
.speakeasy/patches/internal/cli/getsdkpayload.go.patch and .../postcopytransform.go.patch: fix the two Example strings.
To retire: once the generator stops doubling the name for ungrouped ops, drop both patches. NOTE: any new ungrouped operation will reproduce the bug and need its own patch until the generator is fixed.
Refs
Bug
Top-level (ungrouped) commands generate examples that double the binary name:
Root cause (Speakeasy)
For operations with no command group, the example template prefixes both the app name and the binary name — both
growthbook— yielding the doubled prefix.Stopgap fix (retire when upstream is fixed)
.speakeasy/patches/internal/cli/getsdkpayload.go.patchand.../postcopytransform.go.patch: fix the twoExamplestrings.To retire: once the generator stops doubling the name for ungrouped ops, drop both patches. NOTE: any new ungrouped operation will reproduce the bug and need its own patch until the generator is fixed.
Refs