Skip to content

Commit 216dc88

Browse files
v1.2.1: Fix/add godoc. Remove go1.12, add 1.14 to travis. Update godep.
1 parent 295f096 commit 216dc88

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ os:
66
- windows
77

88
go:
9-
- "1.12"
109
- "1.13"
10+
- "1.14"
1111

1212
env:
1313
- GO111MODULE=on

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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)

cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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-
199198
func (c *Cmd) Start() <-chan Status {
200199
return c.StartWithStdin(nil)
201200
}
202201

202+
// StartWithStdin is the same as Start but uses in for STDIN.
203203
func (c *Cmd) StartWithStdin(in io.Reader) <-chan Status {
204204
c.Lock()
205205
defer c.Unlock()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/go-cmd/cmd
22

33
go 1.13
44

5-
require github.com/go-test/deep v1.0.5
5+
require github.com/go-test/deep v1.0.6

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
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=

0 commit comments

Comments
 (0)