Ungrouped command examples double the binary name (growthbook growthbook <cmd>)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with .speakeasy/patches/internal/cli/getsdkpayload.go.patch and postcopytransform.go.patch, focusing on the two Example strings. Confirm how the ungrouped command examples are currently formed, then ensure each shows only one growthbook prefix for get-SDK-payload and post-copy-transform. The work is done when both examples no longer duplicate the binary name; retain the patches until the upstream generator is fixed.
Written by the indexing model from the issue text.
Description
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
- Introduced by #23
- Upstream: file to speakeasy-api/speakeasy (example generation for ungrouped operations).
- Dominant language
- Go
- Stars
- 1
- Forks
- 0
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 18
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from growthbook/cli
-
ConfigRevision responses omit scheduledPublishAt/lock fields that are persisted (spec/back-end) Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
growthbook/cli#55 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
growthbook/cli#49 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
growthbook/cli#27 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/cli#26 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
growthbook/cli#25 ·
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·