import { captureEvent } from "../common/analytics/lib.js";
import { identify } from "../common/middleware/user-identification.js";
import setBlocking, { printResultToConsoleAndExitGracefully, } from "../common/output.js";
import { login } from "../login/login.js";
export default {
    desc: false,
    command: "login",
    builder: (yargs) => {
        return yargs.middleware([setBlocking, identify]);
    },
    handler: async (argv) => {
        await captureEvent({ argv, event: "zuplo login" });
        await login();
        await printResultToConsoleAndExitGracefully("\nSuccessfully authenticated.");
    },
};
//# sourceMappingURL=login.js.map