Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP
concatenate shell commands and execute it on golang
Go
Latest commit f0c5e7b @sudix remove test binary
Failed to load latest commit information.
.gitignore Initial commit
LICENSE Initial commit
README.md modify Example
example_test.go first import
gothen.go first import
gothen_test.go first import

README.md

go-then

concatenate shell commands and execute it on golang.

Requirements

This library relies on mattn's go-pipeline

Instllation

$ go get github.com/sudix/go-then

Usage

c1 := gothen.Cmd{"git", "log", "--oneline"}
c2 := gothen.Cmd{"grep", "first import"}
c3 := gothen.Cmd{"wc", "-l"}

out, err := c1.Then(c2).Then(c3).Exec()

if err != nil {
    log.Fatal(err)
}

fmt.Println(string(out))

License

MIT

Something went wrong with that request. Please try again.