Documentation
¶
Overview ¶
Command cligen generates cobra commands for every Flashduty OpenAPI operation not already owned by a hand-curated command, so the CLI covers the full API surface and every command's --help is sourced from the API description.
It mirrors go-flashduty's own generator: it reads the SAME vendored spec (from the linked go-flashduty module) and reuses naming.go so each generated command targets the exact typed SDK method. Structure (method name, request type, data return) is read by REFLECTING the compiled SDK — authoritative and always in sync; help text (summaries, field descriptions, examples) is read from the spec. Run: `go run ./internal/cmd/cligen` from the repo root.
Click to show internal directories.
Click to hide internal directories.