File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 66 - windows
77
88go :
9- - " 1.12"
109 - " 1.13"
10+ - " 1.14"
1111
1212env :
1313 - GO111MODULE=on
Original file line number Diff line number Diff line change 22
33## v1.2
44
5+ ### v1.2.1 (2020-07-11)
6+
7+ * Added ` StartWithStdin(io.Reader) ` (PR #50 ) (@juanenriqueescobar )
8+
59### v1.2.0 (2020-01-26)
610
711* Changed streaming output: channels are closed after command stops (issue #26 )
Original file line number Diff line number Diff line change @@ -195,11 +195,11 @@ func (c *Cmd) Clone() *Cmd {
195195// Exactly one Status is sent on the channel when the command ends. The channel
196196// is not closed. Any Go error is set to Status.Error. Start is idempotent; it
197197// always returns the same channel.
198-
199198func (c * Cmd ) Start () <- chan Status {
200199 return c .StartWithStdin (nil )
201200}
202201
202+ // StartWithStdin is the same as Start but uses in for STDIN.
203203func (c * Cmd ) StartWithStdin (in io.Reader ) <- chan Status {
204204 c .Lock ()
205205 defer c .Unlock ()
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/go-cmd/cmd
22
33go 1.13
44
5- require github.com/go-test/deep v1.0.5
5+ require github.com/go-test/deep v1.0.6
Original file line number Diff line number Diff line change 1- github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg =
2- github.com/go-test/deep v1.0.1 /go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA =
3- github.com/go-test/deep v1.0.5 h1:AKODKU3pDH1RzZzm6YZu77YWtEAq6uh1rLIAQlay2qc =
4- github.com/go-test/deep v1.0.5 /go.mod h1:QV8Hv/iy04NyLBxAdO9njL0iVPN1S4d/A3NVv1V36o8 =
1+ github.com/go-test/deep v1.0.6 h1:UHSEyLZUwX9Qoi99vVwvewiMC8mM2bf7XEM2nqvzEn8 =
2+ github.com/go-test/deep v1.0.6 /go.mod h1:QV8Hv/iy04NyLBxAdO9njL0iVPN1S4d/A3NVv1V36o8 =
You can’t perform that action at this time.
0 commit comments