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.
12 lines
278 B
Plaintext
12 lines
278 B
Plaintext
exec ["exec0", "exec1",] {
|
|
cmd => "echo whatever",
|
|
shell => "/bin/bash",
|
|
}
|
|
|
|
file "/tmp/command-output" {
|
|
state => "exists",
|
|
}
|
|
|
|
# this is an error because two senders cannot send to the same receiver key
|
|
Exec[["exec0", "exec1",]].output -> File["/tmp/command-output"].content
|