Create a [`tokio::process::Command`] pre-configured to invoke the `openshell` CLI. The command has `kill_on_drop(true)` set so that background child processes are cleaned up when the handle is dropped.
()
| 44 | /// The command has `kill_on_drop(true)` set so that background child processes |
| 45 | /// are cleaned up when the handle is dropped. |
| 46 | pub fn openshell_cmd() -> tokio::process::Command { |
| 47 | let mut cmd = tokio::process::Command::new(openshell_bin()); |
| 48 | cmd.kill_on_drop(true); |
| 49 | cmd |
| 50 | } |
| 51 | |
| 52 | fn shell_escape(arg: &str) -> String { |
| 53 | if arg |