sh[ell]out - a helper for external commands
if s("ls *").p("xargs rm -rf").b() {
s("echo it worked")
}
s("ls").tf("contents.txt")
s(myVar).p("cat")
result,err:=s("echo",myVar1,myVar2).e()
lines:=s("cat",myVar2).list()
s("curl -s example.com/users/1").c(*user)
myFilterFunc:=func(in string) string {
if (in == "bad"){
return nil
}
return in
}
s("cat things.txt").f(myFilterFunc).p("grep abc")