Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- sp "github.com/samuell/scipipe"
- )
- func main() {
- hello := sp.Sh("echo foo > {o:out}")
- hello.OutPathFuncs["out"] = func() string {
- return "hello.txt"
- }
- world := sp.Sh("echo $(cat {i:in}) World >> {o:out}")
- world.OutPathFuncs["bar"] = func() string {
- return world.GetInPath("in") + ".world.txt"
- }
- world.InPorts["in"] = hello.OutPorts["out"]
- hello.Init()
- world.Init()
- <-world.OutPorts["out"]
- }
Add Comment
Please, Sign In to add comment