Part of this was rotten, and not fully functional. This fixes the rot, adds some tests, and improves the type checking that occurs when sending and receiving values. In addition, a significant portion of this happens at compile time. There is still more work to be done here, but this should get us a good chunk of the way for now.
13 lines
403 B
Plaintext
13 lines
403 B
Plaintext
exec "exec0" {
|
|
cmd => "echo this is stdout && echo this is stderr 1>&2", # to stdout && stderr
|
|
shell => "/bin/bash",
|
|
}
|
|
|
|
file ["/tmp/command-output", "/tmp/command-stdout", "/tmp/command-stderr",] {
|
|
state => "exists",
|
|
}
|
|
|
|
Exec["exec0"].output -> File["/tmp/command-output"].content
|
|
Exec["exec0"].stdout -> File["/tmp/command-stdout"].content
|
|
Exec["exec0"].stderr -> File["/tmp/command-stderr"].content
|