UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

14 lines (13 loc) 649 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logoutHandler = logoutHandler; const update_manager_1 = require("../../nx-cloud/update-manager"); const get_cloud_options_1 = require("../../nx-cloud/utilities/get-cloud-options"); const handle_errors_1 = require("../../utils/handle-errors"); function logoutHandler(args) { return (0, handle_errors_1.handleErrors)(args.verbose, async () => { const nxCloudClient = (await (0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)())) .nxCloudClient; await nxCloudClient.commands.logout(); }); }