mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 10:31:20 +00:00
11 lines
299 B
TypeScript
11 lines
299 B
TypeScript
import { Server } from "../../server/server"
|
|
import type { CommandModule } from "yargs"
|
|
|
|
export const GenerateCommand = {
|
|
command: "generate",
|
|
handler: async () => {
|
|
const specs = await Server.openapi()
|
|
process.stdout.write(JSON.stringify(specs, null, 2))
|
|
},
|
|
} satisfies CommandModule
|