MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / StdoutPipe

Method StdoutPipe

pkg/genconn/wsl-impl.go:114–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (w *WSLProcessController) StdoutPipe() (io.Reader, error) {
115 w.lock.Lock()
116 defer w.lock.Unlock()
117
118 if w.started {
119 return nil, fmt.Errorf("command already started")
120 }
121 if w.stdoutPiped {
122 return nil, fmt.Errorf("stdout already piped")
123 }
124
125 w.stdoutPiped = true
126 stdout, err := w.cmd.StdoutPipe()
127 if err != nil {
128 return nil, err
129 }
130 return stdout, nil
131}
132
133func (w *WSLProcessController) StderrPipe() (io.Reader, error) {
134 w.lock.Lock()

Callers

nothing calls this directly

Calls 1

StdoutPipeMethod · 0.65

Tested by

no test coverage detected