Merge pull request #1345 from matthiasbeyer/imag/inherit-stdio

Inherit stdio to child process
This commit is contained in:
Matthias Beyer 2018-03-12 23:22:17 +01:00 committed by GitHub
commit dc76729bea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,6 +205,9 @@ fn main() {
.iter() .iter()
.map(|command| { .map(|command| {
match Command::new(format!("imag-{}", command)) match Command::new(format!("imag-{}", command))
.stdin(::std::process::Stdio::inherit())
.stdout(::std::process::Stdio::inherit())
.stderr(::std::process::Stdio::inherit())
.arg("--version") .arg("--version")
.output() .output()
.map(|v| v.stdout) .map(|v| v.stdout)