Exec
The Exec
action executes a specified binary and passes the arguments to it.
The workflow will wait until the program has exited before it continues.
Inputs
file
- a string pointing to the binary to execute.args
- (optional) a string array with arguments to pass to the executable.std_in
- (optional) a string (or function taking acontext
parameter) that returns the data to write to the process standard input.
Outputs
exit_code
- the exit code of the process that was launched.std_err
- the output which was written to stderr.std_out
- the output which was written to stdout.
Usage
local Exec = require "porla.actions.Exec"
Example
Exec:new{
file = "/usr/bin/curl",
args = {
"https://www.google.com"
}
}