Struct cradle::CurrentDir [−][src]
Expand description
See the CmdArgument
implementation for CurrentDir
below.
Trait Implementations
By default child processes inherit the current directory from their
parent. You can override this with CurrentDir
:
use cradle::*; let StdoutTrimmed(output) = cmd!("pwd", CurrentDir("/tmp")); assert_eq!(output, "/tmp");
Paths that are relative to the parent’s current directory are allowed.
Auto Trait Implementations
impl<T> RefUnwindSafe for CurrentDir<T> where
T: RefUnwindSafe,
impl<T> Send for CurrentDir<T> where
T: Send,
impl<T> Sync for CurrentDir<T> where
T: Sync,
impl<T> Unpin for CurrentDir<T> where
T: Unpin,
impl<T> UnwindSafe for CurrentDir<T> where
T: UnwindSafe,