Struct xshell::Cmd [−][src]
pub struct Cmd { /* fields omitted */ }
Expand description
A command.
Implementations
Pushes the arguments onto this Cmd
.
Equivalent to std::process::Command::env
.
Equivalent to std::process::Command::envs
.
Note: This does not replace the child process’s environment, unless you
call Cmd::env_clear
first.
Equivalent to std::process::Command::env_remove
.
Equivalent to std::process::Command::env_clear
.
Note that on Windows some environmental variables are required for process spawning. See https://github.com/rust-lang/rust/issues/31259.
Returns a Cmd
that will ignore the stdout stream. This is equivalent of
attaching stdout to /dev/null
.
Returns a Cmd
that will ignore the stderr stream. This is equivalent of
attaching stderr to /dev/null
.
Returns a Cmd
that ignores its exit status.
Returns a Cmd
that echoes itself (or not) as specified.
Returns a Cmd
that is secret (or not) as specified.
If a command is secret, it echoes <secret>
instead of the program and
its arguments.
Returns the stderr from running the command.
Returns a std::process::Output
from running the command.