MCPcopy Index your code
hub / github.com/devcontainers/cli / toLogFileText

Function toLogFileText

src/spec-utils/log.ts:227–230  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

225}
226
227function toLogFileText(text: string) {
228 return text.replace(terminalEscapeSequences, '')
229 .replace(/(\r?\n)?$/, os.EOL);
230}
231
232function neverLogEventError(e: never) {
233 return new Error(`Unknown log event type: ${(e as LogEvent).type}`);

Callers 1

logEventToFileTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected