Struct cradle::CurrentDir[][src]

pub struct CurrentDir<T: AsRef<Path>>(pub T);
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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.