()
| 47 | } |
| 48 | |
| 49 | func (s Subprocess) StdoutText() (string, error) { |
| 50 | b, err := io.ReadAll(s.stdout) |
| 51 | if err != nil { |
| 52 | return "", err |
| 53 | } |
| 54 | |
| 55 | return strings.TrimSpace(string(b)), nil |
| 56 | } |
| 57 | |
| 58 | // Returns a single-use iterator over the output of the command, line by line. |
| 59 | func (s Subprocess) StdoutLines() (iter.Seq[string], func() error) { |
no outgoing calls
no test coverage detected