Skip to main content
function Command.arg
def Command.arg(
arg: str,
/
) -> typing.Any
function Command.args
def Command.args(
args: list[str],
/
) -> typing.Any
function Command.current_dir
def Command.current_dir(
dir: str,
/
) -> typing.Any
function Command.env
def Command.env(
key: str,
value: None | str,
/
) -> typing.Any
function Command.spawn
def Command.spawn() -> std.process.Child
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
def Command.status() -> std.process.ExitStatus
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
def Command.stderr(
io: str,
/
) -> typing.Any
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]. function Command.stdin
def Command.stdin(
io: str,
/
) -> typing.Any
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
def Command.stdout(
io: str,
/
) -> typing.Any
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].