diff options
Diffstat (limited to 'vendor/github.com/ionrock/procs/example_predefined_cmds_test.go')
-rw-r--r-- | vendor/github.com/ionrock/procs/example_predefined_cmds_test.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vendor/github.com/ionrock/procs/example_predefined_cmds_test.go b/vendor/github.com/ionrock/procs/example_predefined_cmds_test.go deleted file mode 100644 index 3dfd64015..000000000 --- a/vendor/github.com/ionrock/procs/example_predefined_cmds_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package procs_test - -import ( - "fmt" - "os/exec" - - "github.com/ionrock/procs" -) - -func Example_predefinedCmds() { - p := procs.Process{ - Cmds: []*exec.Cmd{ - exec.Command("echo", "foo"), - exec.Command("grep", "foo"), - }, - } - - p.Run() - out, _ := p.Output() - fmt.Println(string(out)) - // Output: - // foo -} |