Flagforge
FlagSet creation and documentation for Go programs
Install / Use
/learn @rqlite/FlagforgeREADME
flagforge
flagforge allows you to automatically generate Go flag code, as well as the associated Markdown and HTML documentation for those flags, all using a single configuration file. This means you only have to define your command-line options once in a TOML file, and flagforge will do the rest.
Running flagforge
Clone the repo and execute go build. Pass -h to flagforge to learn how to use it.
flagforge -f go|markdown|html <TOML file>
Example usage
rqlite uses flagforge to generate the code and documentation for its extensive set of command-line flags:
- rqlite TOML file
- Generated Go code for command-line flag parsing, and then calling the generated code from rqlite.
- Example of automatically generated HTML documentation for the flags deployed to production site. You can review the generated HTML here.
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
