cligen

command
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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