MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / shutdown

Function shutdown

packages/server/src/core_simulator.rs:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12pub fn shutdown() -> anyhow::Result<()> {
13 let _ = Command::new("xcrun")
14 .args(["simctl", "shutdown", "all"])
15 .output();
16 stop_service()?;
17 print_status("shutdown");
18 Ok(())
19}
20
21pub fn restart() -> anyhow::Result<()> {
22 let _ = Command::new("xcrun")

Callers 1

mainFunction · 0.85

Calls 3

stop_serviceFunction · 0.85
print_statusFunction · 0.85
outputMethod · 0.65

Tested by

no test coverage detected