MCPcopy
hub / github.com/pterm/pterm / readStdout

Function readStdout

utils_test.go:225–229  ·  view source on GitHub ↗

readStdout reads the current stdout buffer. Assumes setupStdoutCapture() has been called before.

()

Source from the content-addressed store, hash-verified

223
224// readStdout reads the current stdout buffer. Assumes setupStdoutCapture() has been called before.
225func readStdout() string {
226 content := outBuf.String()
227 outBuf.Reset()
228 return content
229}
230
231func proxyToDevNull() {
232 pterm.SetDefaultOutput(os.NewFile(0, os.DevNull))

Callers 1

captureStdoutFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…