()
| 97 | } |
| 98 | |
| 99 | func (o *terminalOutput) String() string { |
| 100 | o.mu.Lock() |
| 101 | defer o.mu.Unlock() |
| 102 | return o.buffer.String() |
| 103 | } |
| 104 | |
| 105 | // waitFor waits until gh exits, the context ends or ready returns true. It |
| 106 | // reports whether gh exited, storing cmd.Wait's error in waitErr. |