Struct cradle::input::CurrentDir [−][src]
Expand description
By default child processes inherit the current directory from their
parent. You can override this with CurrentDir
:
use cradle::prelude::*;
let StdoutTrimmed(output) = run_output!("pwd", CurrentDir("/tmp"));
assert_eq!(output, "/tmp");
Paths that are relative to the parent’s current directory are allowed.
Tuple Fields
0: T
Trait Implementations
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,
Blanket Implementations
Mutably borrows from an owned value. Read more