Skip to content

Ungrouped command examples double the binary name (growthbook growthbook <cmd>) #29

Description

@Kevin-Chant

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcustomA custom version was applied

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions