Conversation
This implements CLI documentation generation using cobra/doc, building on the work started in #1696. Changes: - Add tools/gendocs/ Go tool to generate CLI reference docs - Generate docs/cli.md from cobra command definitions - Add mise tasks: docs:cli and docs:cli:check - Run CLI docs check in CI alongside llms.txt check - Update AGENTS.md with CLI docs maintenance instructions Fixes #1696
tempusfrangit
requested changes
Feb 18, 2026
Member
tempusfrangit
left a comment
There was a problem hiding this comment.
This looks fine but we should wire up mise to do some lifting for us!
Member
|
@michaeldwan we'll want to track this for kong rewire. |
This ensures CLI docs are always generated before being included in llms.txt Co-authored-by: bfirsh <40906+bfirsh@users.noreply.github.com>
Co-authored-by: bfirsh <40906+bfirsh@users.noreply.github.com>
tempusfrangit
approved these changes
Feb 19, 2026
Member
tempusfrangit
left a comment
There was a problem hiding this comment.
This seems reasonable. I'm certain once we move to Kong this will need to be reworked but that is just part of that migration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements CLI documentation generation using cobra/doc, building on the work started in #1696.
Changes
tools/gendocs/Go tool to generate CLI reference docs from cobra commandsdocs/cli.mdprogrammatically from Go source codemise run docs:cli- generate CLI docsmise run docs:cli:check- verify docs are up to dateUsage
Notes
cmd/orpkg/cli/files changeCloses #1696