UNPKG

nx

Version:

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

28 lines (27 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.yargsRegisterCommand = void 0; const handle_import_1 = require("../../utils/handle-import"); const shared_options_1 = require("../yargs-utils/shared-options"); const handle_errors_1 = require("../../utils/handle-errors"); exports.yargsRegisterCommand = { command: 'register [key]', aliases: ['activate-powerpack'], describe: false, builder: (yargs) => (0, shared_options_1.withVerbose)(yargs) .parserConfiguration({ 'strip-dashed': true, 'unknown-options-as-args': true, }) .positional('key', { type: 'string', description: 'This is a key for Nx.', }) .example('$0 register <key>', 'Register a Nx key'), handler: async (args) => { const exitCode = await (0, handle_errors_1.handleErrors)(args.verbose ?? false, async () => { return (await (0, handle_import_1.handleImport)('./register.js', __dirname)).handleRegister(args); }); process.exit(exitCode); }, };