generate.ts 299 B

12345678910
  1. import { Server } from "../../server/server"
  2. import type { CommandModule } from "yargs"
  3. export const GenerateCommand = {
  4. command: "generate",
  5. handler: async () => {
  6. const specs = await Server.openapi()
  7. process.stdout.write(JSON.stringify(specs, null, 2))
  8. },
  9. } satisfies CommandModule