UNPKG

nx

Version:

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

13 lines (12 loc) 564 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.linkToNxDevAndExamples = linkToNxDevAndExamples; const tslib_1 = require("tslib"); const pc = tslib_1.__importStar(require("picocolors")); const examples_1 = require("../examples"); function linkToNxDevAndExamples(yargs, command) { (examples_1.examples[command] || []).forEach((t) => { yargs = yargs.example(t.command, t.description); }); return yargs.epilog(pc.bold(`Find more information and examples at https://nx.dev/nx/${command.replace(':', '-')}`)); }