import { captureEvent } from "../common/analytics/lib.js";
import { identify } from "../common/middleware/user-identification.js";
import setBlocking from "../common/output.js";
import { convert } from "../convert/handler.js";
export default {
    desc: "Converts routes.json to routes.oas.json",
    command: "convert",
    builder: (yargs) => {
        return yargs
            .option("dir", {
            type: "string",
            describe: "The directory containing your config/routes.json",
            default: ".",
            normalize: true,
            hidden: true,
        })
            .middleware([setBlocking, identify]);
    },
    handler: async (argv) => {
        await captureEvent({ argv, event: "zuplo convert" });
        await convert(argv);
    },
};
//# sourceMappingURL=convert.js.map