()
| 19 | } |
| 20 | |
| 21 | pub fn restart() -> anyhow::Result<()> { |
| 22 | let _ = Command::new("xcrun") |
| 23 | .args(["simctl", "shutdown", "all"]) |
| 24 | .output(); |
| 25 | stop_service()?; |
| 26 | thread::sleep(Duration::from_millis(500)); |
| 27 | run_xcrun(["simctl", "list", "devices"])?; |
| 28 | print_status("restart"); |
| 29 | Ok(()) |
| 30 | } |
| 31 | |
| 32 | fn stop_service() -> anyhow::Result<()> { |
| 33 | match Command::new("killall") |
nothing calls this directly
no test coverage detected