Skip to content

Instantly share code, notes, and snippets.

@samuell
Last active July 17, 2018 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuell/5f893b50dfd4f2b8e2f1a0c404bc851a to your computer and use it in GitHub Desktop.
Save samuell/5f893b50dfd4f2b8e2f1a0c404bc851a to your computer and use it in GitHub Desktop.
package main
import (
sp "github.com/scipipe/scipipe"
)
func main() {
wf := sp.NewWorkflow("hello_world", 4)
hello := wf.NewProc("hello", "echo 'Hello ' > {o:out}")
hello.SetOut("out", "hello.txt")
world := wf.NewProc("world", "echo $(cat {i:in}) World >> {o:out}")
world.SetOut("out", "{i:in|%.txt}_world.txt")
world.In("in").From(hello.Out("out"))
wf.Run()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment