Guest User

Untitled

a guest
Jul 17th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. sp "github.com/scipipe/scipipe"
  5. )
  6.  
  7. func main() {
  8. wf := sp.NewWorkflow("hello_world", 4)
  9.  
  10. hello := wf.NewProc("hello", "echo 'Hello ' > {o:out}")
  11. hello.SetOut("out", "hello.txt")
  12.  
  13. world := wf.NewProc("world", "echo $(cat {i:in}) World >> {o:out}")
  14. world.SetOut("out", "{i:in|%.txt}_world.txt")
  15.  
  16. world.In("in").From(hello.Out("out"))
  17.  
  18. wf.Run()
  19. }
Add Comment
Please, Sign In to add comment