Struct xshell::Cmd [−][src]
#[must_use]pub struct Cmd { /* fields omitted */ }
A command.
Implementations
impl Cmd
[src]
impl Cmd
[src]pub fn args<I>(self, args: I) -> Cmd where
I: IntoIterator,
I::Item: AsRef<OsStr>,
[src]
pub fn args<I>(self, args: I) -> Cmd where
I: IntoIterator,
I::Item: AsRef<OsStr>,
[src]Pushes the arguments onto this Cmd
.
pub fn ignore_status(self) -> Cmd
[src]
pub fn ignore_status(self) -> Cmd
[src]Returns a Cmd
that ignores its exit status.
pub fn echo_cmd(self, echo: bool) -> Cmd
[src]
pub fn echo_cmd(self, echo: bool) -> Cmd
[src]Returns a Cmd
that echoes itself (or not) as specified.
pub fn secret(self, secret: bool) -> Cmd
[src]
pub fn secret(self, secret: bool) -> Cmd
[src]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.
pub fn read_stderr(self) -> Result<String>
[src]
pub fn read_stderr(self) -> Result<String>
[src]Returns the stderr from running the command.
pub fn output(self) -> Result<Output>
[src]
pub fn output(self) -> Result<Output>
[src]Returns a std::process::Output
from running the command.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more