mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-23 10:54:50 +01:00
Add a new CLI application (`cmd/cli/`) that generates command-line interface commands from the API swagger specification. Includes: - Main CLI entry point with command parsing and execution - Code generator that reads swagger.json and generates typed command handlers - Makefile targets (`gen-cli`, `build-cli`) for generating and building the CLI - GitHub Actions workflow to build cross-platform CLI binaries (linux/amd64, linux/arm64)
20 lines
301 B
Go
Executable File
20 lines
301 B
Go
Executable File
package main
|
|
|
|
type Param struct {
|
|
FlagName string
|
|
Name string
|
|
In string
|
|
Type string
|
|
Required bool
|
|
Description string
|
|
}
|
|
|
|
type Endpoint struct {
|
|
CommandPath []string
|
|
Method string
|
|
Path string
|
|
Summary string
|
|
IsWebSocket bool
|
|
Params []Param
|
|
}
|