cligen

command
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

cligen reads bron-open-api-public.json and emits cobra command definitions under generated/. Resources come from OpenAPI tags (kebab-case), verbs are derived from the HTTP method + URL shape: GET /xxx → list, GET /xxx/{id} → get, POST → create, PUT/PATCH → update, DELETE → delete. Trailing path segments after an id become the verb (POST /xxx/{id}/yyy → yyy). Names map 1:1 with the spec — no aliases, no remapping — so the spec stays the source of truth and the CLI regenerates losslessly on every release.

Jump to

Keyboard shortcuts

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