mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
feat: in-line shell evaluation
This commit is contained in:
parent
8ae71443d6
commit
b5f2f139e4
4 changed files with 19 additions and 3 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue