UNPKG

swagger-typescript

Version:

An auto ts/js code generate from swagger/openApi

20 lines (16 loc) 382 B
#!/usr/bin/env node import { generate } from "../lib/index.mjs"; import yargs from "yargs/yargs"; import { hideBin } from "yargs/helpers"; const argv = yargs(hideBin(process.argv)) .option("local") .option("branch") .option("config", { string: true, }).argv; generate(undefined, { tag: argv._, local: argv.local, branch: argv.branch, config: argv.config, });