Skip to content

docs: KEEP-1047 regenerate kh auth login reference - #74

Merged
suisuss merged 2 commits into
mainfrom
docs/KEEP-1047-regenerate-auth-login-reference
Jul 28, 2026
Merged

docs: KEEP-1047 regenerate kh auth login reference#74
suisuss merged 2 commits into
mainfrom
docs/KEEP-1047-regenerate-auth-login-reference

Conversation

@suisuss

@suisuss suisuss commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What

Regenerates docs/kh_auth_login.md. One file, generated output only.

Why

#73 added --force without regenerating the command reference, so main
currently documents a login command that does not match the binary. Regenerating
this page also corrects drift that predates that PR:

  • The synopsis claimed the default "opens a browser for OAuth" and pointed at a
    --no-browser flag that does not exist in cmd/auth/login.go. Both the
    example block and the flag list referenced it.
  • The inherited --org flag was missing.

Why only one file

The generator rewrites 68 files and adds 14 missing ones on current
main. That backlog exists because docs-check cannot detect drift: its
go generate ./docs/ step is a no-op, since the //go:generate directive lives
in docs/generate.go, which is marked //go:build ignore and is therefore never
scanned. The job passes unconditionally in ~16s.

Fixing the guard and regenerating the full tree is tracked separately - it has to
be one change, because fixing the guard alone turns the next unrelated PR red.
This PR deliberately stays scoped to the page #73 made wrong.

Known remaining inaccuracy

The regenerated synopsis still says "Opens a browser to confirm a one-time code."
That is generated verbatim from the command's Long string, and it is wrong -
internal/auth/device.go only prints the URL and never opens a browser. Fixing
it means editing the help text rather than regenerating, so it is left to the
tracked follow-up alongside the expiry error that suggests running
kh auth login --no-browser.

Test plan

  • Generated by cd docs && go run generate.go against this branch, not
    hand-edited
  • Diff limited to the one page; the other 81 files were reverted
  • docs-check will pass, but note it passes regardless - it cannot fail

suisuss added 2 commits July 28, 2026 11:09
The --force flag landed in #73 without a docs regeneration. Regenerating
this page also corrects drift that predates it: the synopsis described an
OAuth browser default with a --no-browser flag, neither of which exists in
cmd/auth/login.go, and the inherited --org flag was missing.

Only this page is regenerated. The generator rewrites 68 files and adds 14
missing ones, because docs-check cannot catch drift - its
go generate ./docs/ step is a no-op, the //go:generate directive sitting
in a //go:build ignore file. Tracked separately.
@suisuss
suisuss merged commit 3ef68b4 into main Jul 28, 2026
4 checks passed
@suisuss
suisuss deleted the docs/KEEP-1047-regenerate-auth-login-reference branch July 28, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant