amber/child_process
Types
pub type ChildProcess
Values
pub fn kill(process: ChildProcess) -> Result(Nil, error.Error)
pub fn kill_with(
process: ChildProcess,
with signal: signal.Signal,
) -> Result(Nil, error.Error)
pub fn output(
of process: ChildProcess,
) -> promise.Promise(
Result(command_output.CommandOutput, error.Error),
)
pub fn pid(of process: ChildProcess) -> Int
pub fn ref(process: ChildProcess) -> ChildProcess
pub fn status(
of process: ChildProcess,
) -> promise.Promise(
Result(command_status.CommandStatus, error.Error),
)
pub fn stderr(
of process: ChildProcess,
) -> Result(
readable_stream.ReadableStream(uint8_array.Uint8Array),
error.Error,
)
pub fn stdin(
of process: ChildProcess,
) -> Result(
writable_stream.WritableStream(uint8_array.Uint8Array),
error.Error,
)
pub fn stdout(
of process: ChildProcess,
) -> Result(
readable_stream.ReadableStream(uint8_array.Uint8Array),
error.Error,
)
pub fn unref(process: ChildProcess) -> ChildProcess
pub fn using(
process: ChildProcess,
apply fun: fn(ChildProcess) -> promise.Promise(a),
) -> promise.Promise(a)