docsgen

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL