Class pinnacle.process.Child
Fields
pid
pid
: integer
stdin nullable
stdin?
: pinnacle.process.ChildStdin
stdout nullable
stdout?
: pinnacle.process.ChildStdout
stderr nullable
stderr?
: pinnacle.process.ChildStderr
Functions
method wait
function pinnacle.process.Child:wait()
-> { exit_code: integer, exit_msg: string }
Waits for this child process to exit.
This will block the calling thread.
Returns the exit status of the process.
Returns
{ exit_code: integer, exit_msg: string }
method on_line_stdout
function pinnacle.process.Child:on_line_stdout(on_line: fun(line: string))
-> self: self
Runs a function with every line of the child process's standard output.
Parameters
on_line
: fun(line: string)
Returns
self
:self
- This child for chaining
method on_line_stderr
function pinnacle.process.Child:on_line_stderr(on_line: fun(line: string))
-> self: self
Runs a function with every line of the child process's standard error.
Parameters
on_line
: fun(line: string)
Returns
self
:self
- This child for chaining