f06601cab5
Replicate `lfs/gitscanner_cmd` in `subprocess/buffered_cmd` using subprocess/cmd. In subsequent commits we will migrate all functions users of `lfs/gitscanner_cmd` to `subprocess/buffered_cmd` and afterwards remove `lfs/gitscanner_cmd`.
20 lines
258 B
Go
20 lines
258 B
Go
package subprocess
|
|
|
|
import (
|
|
"bufio"
|
|
"io"
|
|
)
|
|
|
|
const (
|
|
// stdoutBufSize is the size of the buffers given to a sub-process stdout
|
|
stdoutBufSize = 16384
|
|
)
|
|
|
|
type BufferedCmd struct {
|
|
*Cmd
|
|
|
|
Stdin io.WriteCloser
|
|
Stdout *bufio.Reader
|
|
Stderr *bufio.Reader
|
|
}
|