• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nestjs / nest / e40f946f-685e-4b9b-bacb-8db21ded764a

11 Dec 2024 12:39AM UTC coverage: 91.912%. Remained the same
e40f946f-685e-4b9b-bacb-8db21ded764a

Pull #14311

circleci

RyanV-Souza
docs(readme_br): add a new translation to readme
Pull Request #14311: docs(readme_br): add a readme with brazilian portuguese translation

2087 of 2525 branches covered (82.65%)

6818 of 7418 relevant lines covered (91.91%)

17.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/packages/core/repl/repl-function.ts
1
import { Logger } from '@nestjs/common';
2
import { clc } from '@nestjs/common/utils/cli-colors.util';
1✔
3
import { ReplContext } from './repl-context';
4
import type { ReplFnDefinition } from './repl.interfaces';
5

6
export abstract class ReplFunction<
1✔
7
  ActionParams extends Array<unknown> = Array<unknown>,
8
  ActionReturn = any,
9
> {
10
  /** Metadata that describes the built-in function itself. */
11
  public abstract fnDefinition: ReplFnDefinition;
12

13
  protected readonly logger: Logger;
14

15
  constructor(protected readonly ctx: ReplContext) {
42✔
16
    this.logger = ctx.logger;
42✔
17
  }
18

19
  /**
20
   * Method called when the function is invoked from the REPL by the user.
21
   */
22
  abstract action(...args: ActionParams): ActionReturn;
23

24
  /**
25
   * @returns A message displayed by calling `<fnName>.help`
26
   */
27
  public makeHelpMessage(): string {
28
    const { description, name, signature } = this.fnDefinition;
×
29

30
    const fnSignatureWithName = `${name}${signature}`;
×
31

32
    return `${clc.yellow(description)}\n${clc.magentaBright(
×
33
      'Interface:',
34
    )} ${clc.bold(fnSignatureWithName)}\n`;
35
  }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc