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