mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +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
|