Documentation
¶
Overview ¶
Command docsgen keeps the command table in docs/cli.md in sync with the CLI's own command table (internal/cli/cli.go).
It renders the table by calling the CLI the way a user would — `idea help --format=md` — capturing the stdout writer it is handed, and splices the result between the generated-block markers in docs/cli.md. Prose outside the markers is never touched.
go run ./internal/docsgen # rewrite docs/cli.md go run ./internal/docsgen -check # fail if it is out of date go run ./internal/docsgen -api-check # fail if docs/openapi.yaml has drifted
`make docs`, `make docs-check` and `make api-check` are the intended entry points; CI runs the latter two so neither a new command nor a new HTTP route can ship undocumented. The API half lives in apicheck.go.