MCPcopy Create free account
hub / github.com/cortesi/modd / logOutput

Function logOutput

shell/shell.go:163–173  ·  view source on GitHub ↗
(wg *sync.WaitGroup, fp io.ReadCloser, out func(string, ...interface{}))

Source from the content-addressed store, hash-verified

161}
162
163func logOutput(wg *sync.WaitGroup, fp io.ReadCloser, out func(string, ...interface{})) {
164 defer wg.Done()
165 r := bufio.NewReader(fp)
166 for {
167 line, _, err := r.ReadLine()
168 if err != nil {
169 return
170 }
171 out("%s", string(line))
172 }
173}
174
175// CheckShell checks that a shell is supported, and returns the correct command name
176func CheckShell(shell string) (string, error) {

Callers 1

startMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…