golang/go

os/exec: provide better support for creating pipelines

Offen

#11.164 geöffnet am 11.06.2015

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (19.008 Forks)batch import
FeatureRequesthelp wanted

Repository-Metriken

Stars
 (133.883 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Creating pipelines using os/exec is somewhat tedious. There are a couple of good external packages that provide higher-level interfaces: http://godoc.org/gopkg.in/pipe.v2 http://godoc.org/github.com/ghemawat/stream

Brad asked me to file an issue to think about making this better for Go 1.6.

Related: it's common to want the text of stderr on failure, but not as CombinedOutput. The pipe package calls this DividedOutput: http://godoc.org/gopkg.in/pipe.v2#DividedOutput

Contributor Guide