MCPcopy Create free account
hub / github.com/sinclairtarget/git-who / StdoutText

Method StdoutText

internal/git/cmd/subprocess.go:49–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (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.
59func (s Subprocess) StdoutLines() (iter.Seq[string], func() error) {

Callers 2

GetRootFunction · 0.80
globalMailmapPathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected