Last active
July 17, 2018 22:18
-
-
Save samuell/5f893b50dfd4f2b8e2f1a0c404bc851a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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