MCPcopy
hub / github.com/serverless/serverless / writeText

Function writeText

packages/util/src/logger/index.js:413–424  ·  view source on GitHub ↗
(...textTokens)

Source from the content-addressed store, hash-verified

411 * Handles writing text to the console.
412 */
413const writeText = (...textTokens) => {
414 // Stop the spinner to not collide with log output
415 renderer.spinner.stop()
416
417 const text = joinTextTokens(textTokens)
418 process.stdout.write(joinTextTokens(text))
419
420 renderer.state.lastToken = text
421
422 // Restart the spinner if it was stopped
423 renderer.spinner.start({ lineBreak: false })
424}
425
426/**
427 * Join text tokens for the writeText method, ensuring correct array handling and joining.

Callers 15

options.jsFile · 0.90
command.jsFile · 0.90
general.jsFile · 0.90
printMethod · 0.90
displayFunction · 0.90
logMethod · 0.90
runDiffFunction · 0.90
invokeLocalDockerMethod · 0.90
invokeLocalPythonMethod · 0.90
callJavaBridgeMethod · 0.90
invokeLocalRubyMethod · 0.90
handleErrorMethod · 0.90

Calls 4

joinTextTokensFunction · 0.85
writeMethod · 0.80
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…