Skip to content

mccoyst/pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Package pipeline provides a datatype for simple chaining of the standard os/exec package's *Cmd.

For example:

	c := exec.Command
	cmds, err := New(
		c("echo", "hi"),
		c("sed", "s/h/H/"),
		c("sed", "s/i/ello/"))

	…

	_ = cmds.Start()
	_ = cmds.Wait()

	// Output: Hello

About

A Go package for chaining commands together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages