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

Method StdoutPipe

pkg/genconn/ssh-impl.go:115–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

StdoutPipeMethod · 0.65

Tested by

no test coverage detected