function Command.arg
function Command.args
function Command.current_dir
function Command.env
function Command.process_group
Assign the command to process group
group.
On Unix, 0 starts the command as the leader of a new process group.
A grouped child can be terminated together with the other processes in
that group by calling [Child.kill_all]. This setting has no effect on
Windows.
function Command.spawn
Executes the command as a child process, returning a handle to it.
By default, stdin, stdout and stderr are inherited from the parent.
function Command.status
Executes a command as a child process, waiting for it to finish and collecting its status. Unlike
cmd.spawn().wait() and cmd.spawn().wait_with_output(), this function does not close the stdin handle.
By default, stdin, stdout and stderr are inherited from the parent.
function Command.stderr
Configuration for the child process’s standard error (stderr) handle.
Defaults to [
inherit] when used with [spawn] or [status], and
defaults to [piped] when used with [output].
Accepts the same values as [stdout].
function Command.stdin
Configuration for the child process’s standard input (stdin) handle.
Defaults to [
inherit] when used with [spawn] or [status], and
defaults to [piped] when used with [output].
function Command.stdout
Configuration for the child process’s standard output (stdout) handle.
Defaults to [
inherit] when used with [spawn] or [status], and
defaults to [piped] when used with [output].
Accepts the strings "null", "piped", "inherit", or a writable file
stream from fs.create(...) to redirect output straight to that file —
letting a caller poll the child’s liveness with try_wait and read the
file afterwards instead of draining a pipe with wait_with_output.
