feat: in-line shell evaluation

This commit is contained in:
iff 2023-08-04 00:52:49 +02:00
parent 8ae71443d6
commit b5f2f139e4
4 changed files with 19 additions and 3 deletions

View file

@ -75,7 +75,6 @@ fn eval_shell_command(shell: &str, command: &str) -> Vec<String> {
.expect("failed to execute process");
let output = String::from_utf8_lossy(&output.stdout);
let split_output = output.split('\n').collect::<Vec<&str>>();
println!("{:?}", split_output);
split_output
.iter()
.map(|s| s.trim().to_string())