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

Method replaceLine

lib/internals/Colorize.js:14–16  ·  view source on GitHub ↗

* Replaces the current line with the given text. * @param text The text to replace the current line with.

(text)

Source from the content-addressed store, hash-verified

12 * @param text The text to replace the current line with.
13 */
14 static replaceLine(text) {
15 return '\x1b[A\x1b[2K' + text;
16 }
17 /**
18 * Renders the given text as error text.
19 * @param error Error text to render.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected