4 Commits

Author SHA1 Message Date
5e566ba8ae feat: generate default configs for docs without compiled binaries 2025-01-08 09:57:27 +11:00
942094cbf3 feat: separate docsgen-config Makefile target
still requires compiled binaries to produce the config, separate from
docsgen-cli which does not require them
2025-01-08 09:57:27 +11:00
ed4ea55cc6 feat: generate CLI docs without needing compiled binaries 2025-01-08 09:57:27 +11:00
2158d88eb1 chore: reimplement docsgen-cli in go for faster more maintainable generation (#12510)
* Reimplement docsgen-cli in go for faster more maintainable generation

Replace the python script used to generate markdown documentation from
CLI usage output with a go script. The new implementation runs
approximately 2X faster than the python version.

Ideally, we should use urfav HelpPrinter directly to get the usage in
order to avoid having to build the CLIs first. Based on a quick try it
looks like the usage is not exactly the same as the built version, and
there are env vars ossified deep into the code that changes the usage
printing. Hence the path of least resistance, i.e. re-implementation
in go.
2024-09-24 18:08:26 +01:00