I am trying to write a simple CLI in Rust.
let output = Command::new("which")
.arg("brew")
.output()
.expect("Failed to execute command");
I would like to get output
in the form of a string for comparison. How do I do that?