Struct cradle::Stdin [−][src]
Expand description
Writes the given byte slice to the child’s standard input.
use cradle::*; let StdoutUntrimmed(output) = cmd!("sort", Stdin("foo\nbar\n")); assert_eq!(output, "bar\nfoo\n");
If Stdin
is used multiple times, all given bytes slices will be written
to the child’s standard input in order.