UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

18 lines (17 loc) • 537 B
import { clc } from '@nestjs/common/internal'; export class ReplFunction { ctx; logger; constructor(ctx) { this.ctx = ctx; this.logger = ctx.logger; } /** * @returns A message displayed by calling `<fnName>.help` */ makeHelpMessage() { const { description, name, signature } = this.fnDefinition; const fnSignatureWithName = `${name}${signature}`; return `${clc.yellow(description)}\n${clc.magentaBright('Interface:')} ${clc.bold(fnSignatureWithName)}\n`; } }