[][src]Trait assert_cmd::stdin::CommandStdInExt

pub trait CommandStdInExt {
    fn with_stdin(&mut self) -> StdInCommandBuilder;
}

Write to stdin of a Command.

Required methods

fn with_stdin(&mut self) -> StdInCommandBuilder

Write buffer to stdin when the command is run.

Examples

use assert_cmd::prelude::*;

use std::process::Command;

let mut cmd = Command::new("cat");
cmd
    .arg("-et");
cmd
    .with_stdin()
    .buffer("42")
    .assert()
    .stdout("42");
Loading content...

Implementations on Foreign Types

impl CommandStdInExt for Command[src]

Loading content...

Implementors

Loading content...