Repository navigation
docs(installation): rename --buildDelay to --build-delay in install examples - #1006
Aditya060806 wants to merge 1 commit into
Conversation
…xamples
The flag is registered on both keploy record and keploy test as the
kebab-case "build-delay" (cli/provider/cmd.go line 1057:
`cmd.Flags().Uint64P("build-delay", "b", c.cfg.BuildDelay, ...)`).
Cobra/pflag does not accept the camelCase spelling, so a reader who
copies the "--buildDelay 60" suffix from the server installation tabs
hits `unknown flag: --buildDelay` on the first command they run after
installing.
The seven install-tab pairs (Linux native, Linux Docker, Linux Lima,
Linux WSL, macOS, Windows native, Windows WSL) each repeat the same
two example lines, so this is 14 occurrences in
versioned_docs/version-4.0.0/server/installation_tabs.md, all
mechanical. No other change.
Verified: yarn build clean before and after on Windows 11, Node 24.16,
yarn 1.22.22. 266 documents processed, no broken-link or anchor throws.
Signed-off-by: Aditya Pandey <aditya060806@gmail.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Hi @Aditya060806, thanks a lot for raising this PR and for keeping the docs up to date and consistent with the canonical command syntax! 🙌 One clarification on the description: So this isn't a bug fix, but standardizing on
Happy to merge once that's updated. Thanks again! 🎉 |
|
Thanks for catching that, @Namanv0509 — you're completely right. The I did not actually run Updated the PR body:
Diff is unchanged (still the same 14-line swap). Thanks again — and happy to add the follow-up second PR for the remaining install-adjacent files ( |
What has changed?
versioned_docs/version-4.0.0/server/installation_tabs.md— the install guide that drives the Linux / macOS / Windows tabs on https://keploy.io/docs/server/installation — pairs every tab with akeploy recordand akeploy testexample that still ends with--buildDelay 60. The canonical spelling thatkeploy --helpdocuments (and thatcli/provider/cmd.goregisters viacmd.Flags().Uint64P("build-delay", "b", …)) is--build-delay. This PR renames the stale camelCase spelling to the canonical kebab-case spelling across all 14 occurrences (seven install tabs × a record + test pair), no other change. Consistency cleanup, not a functional change — see "Clarification on prior framing" below.Cobra flag registration (
cli/provider/cmd.go):Diff (
git diff -U0): 14 insertions, 14 deletions, 1 file.Clarification on prior framing
The earlier version of this description claimed
--buildDelaywould fail withunknown flag. That claim was wrong. As @Namanv0509 pointed out in review: Keploy installs an alias normalizer incli/provider/cmd.go(cmd.Flags().SetNormalizeFunc(aliasNormalizeFunc)) whose map includes"buildDelay": "build-delay"and"containerName": "container-name", so both spellings are accepted and behave identically. The error claim was based on reading only the flag-registration site in the source and inferring behaviour, not on running the CLI — my mistake, apologies for the confusion.With the alias normalizer in place, this PR is a docs consistency update: aligning the install tabs with the canonical spelling that
keploy --helpdocuments and that the quickstart folder already uses post-#981. It is not a bug fix.Related work
This is a direct follow-up to @Namanv0509's #981, which walked each quickstart end to end and fixed, among other deviations, the same
--buildDelay→--build-delayand--containerName→--container-namerename acrossversioned_docs/version-4.0.0/quickstart/*.md. That PR deliberately scoped itself to the quickstart folder; the install tabs page carried the same stale flag spellings and wasn't in scope. This PR closes that gap for the server install page.I deliberately left
--buildDelayand--containerNamealone in the other install-adjacent files (concepts/installation.md,installation/macos.md,installation/windows.md,server/{linux,macos,windows}/installation.md, the twokeploy-cloud/*deduplication.mdpages, and the three remaining quickstarts) so this stays a tight, one-file review. Happy to open a second PR for the rest once this pattern is confirmed, or fold them in here if the reviewer prefers.Type of change
How Has This Been Tested?
Ran on Windows 11, Node 24.16.0, Yarn 1.22.22.
onBrokenLinks: "throw"andonBrokenAnchors: "throw"are both set indocusaurus.config.js, so the build fails on any unresolved link or anchor.yarn build— clean onHEAD~1(before the rename) and onHEAD(after): 266 documents processed, Client + Server compiled,[SUCCESS] Generated static files in "build".No rendered output changes: the swap is inside already-rendered
<code>blocks, so every--build-delay 60lands at the same column where--buildDelay 60was. I did not re-runyarn servebecause the touched lines only change the text inside code fences; happy to attach a side-by-side if the reviewer wants one.Checklist
Additional notes
Scope guard: one file, one pattern, 14 occurrences, no reformatting, no trailing-whitespace tidying, no
keploy test --c→keploy test -ccleanup even though that stray extra dash caught my eye on the same lines. If you'd like me to fold that in, say the word and I'll push a follow-up commit; otherwise it's a separate PR.