Pretty output of --versions

This commit is contained in:
Mario Krehl 2016-09-07 11:24:36 +02:00
parent 12f9175700
commit e813ab9e3a

View file

@ -159,7 +159,7 @@ fn main() {
let v = Command::new(format!("imag-{}",command)).arg("--version").output(); let v = Command::new(format!("imag-{}",command)).arg("--version").output();
match v { match v {
Ok(v) => match String::from_utf8(v.stdout) { Ok(v) => match String::from_utf8(v.stdout) {
Ok(s) => format!("{} -> {}", command, s), Ok(s) => format!("{:10} -> {}", command, s),
Err(e) => format!("Failed calling {} -> {:?}", command, e), Err(e) => format!("Failed calling {} -> {:?}", command, e),
}, },
Err(e) => format!("Failed calling {} -> {:?}", command, e), Err(e) => format!("Failed calling {} -> {:?}", command, e),
@ -169,7 +169,7 @@ fn main() {
} }
for versionstring in result.into_iter().map(|handle| handle.join()) { for versionstring in result.into_iter().map(|handle| handle.join()) {
println!("{}", versionstring); print!("{}", versionstring);
} }
} }