UNPKG

736 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ReplFunction = void 0;
4const cli_colors_util_1 = require("@nestjs/common/utils/cli-colors.util");
5class ReplFunction {
6 constructor(ctx) {
7 this.ctx = ctx;
8 this.logger = ctx.logger;
9 }
10 /**
11 * @returns A message displayed by calling `<fnName>.help`
12 */
13 makeHelpMessage() {
14 const { description, name, signature } = this.fnDefinition;
15 const fnSignatureWithName = `${name}${signature}`;
16 return `${cli_colors_util_1.clc.yellow(description)}\n${cli_colors_util_1.clc.magentaBright('Interface:')} ${cli_colors_util_1.clc.bold(fnSignatureWithName)}\n`;
17 }
18}
19exports.ReplFunction = ReplFunction;