(args: &[&str])
| 1 | use std::process::Command; |
| 2 | |
| 3 | fn delphi(args: &[&str]) -> (String, String, i32) { |
| 4 | let output = Command::new(env!("CARGO_BIN_EXE_delphi")) |
| 5 | .args(args) |
| 6 | .output() |
| 7 | .expect("failed to run delphi"); |
| 8 | ( |
| 9 | String::from_utf8_lossy(&output.stdout).to_string(), |
| 10 | String::from_utf8_lossy(&output.stderr).to_string(), |
| 11 | output.status.code().unwrap_or(-1), |
| 12 | ) |
| 13 | } |
| 14 | |
| 15 | // --- colour --- |
| 16 |
no outgoing calls