MCPcopy Create free account
hub / github.com/Stevenic/codepilot / Colorize

Class Colorize

lib/internals/Colorize.d.ts:5–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3 * Colorizes text for the console.
4 */
5export declare class Colorize {
6 /**
7 * Replaces the current line with the given text.
8 * @param text The text to replace the current line with.
9 */
10 static replaceLine(text: string): string;
11 /**
12 * Renders the given text as error text.
13 * @param error Error text to render.
14 */
15 static error(error: Error | string): string;
16 /**
17 * Renders the given text with a highlight to call attention.
18 * @param message Text to highlight.
19 */
20 static highlight(message: string): string;
21 /**
22 * Renders the given text as general output text.
23 * @param output Text to render.
24 * @param quote Optional. Quote to use for strings. Defaults to `''`.
25 * @param units Optional. Units to use for numbers. Defaults to `''`.
26 */
27 static output(output: object | string, quote?: string, units?: string): string;
28 /**
29 * Renders the given text as progress text.
30 * @param message Progress text to render.
31 */
32 static progress(message: string): string;
33 /**
34 * Renders the given text as a title.
35 * @param title Title text to render.
36 */
37 static title(title: string): string;
38 /**
39 * Renders the given text as a value.
40 * @param field Field name to render.
41 * @param value Value to render.
42 * @param units Optional. Units to use for numbers. Defaults to `''`.
43 */
44 static value(field: string, value: any, units?: string): string;
45 /**
46 * Renders the given text as a warning.
47 * @param warning Warning text to render.
48 */
49 static warning(warning: string): string;
50}
51//# sourceMappingURL=Colorize.d.ts.map

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected