MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / disable

Function disable

packages/server/src/service.rs:203–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203pub fn disable() -> anyhow::Result<()> {
204 ensure_launch_agent_supported()?;
205 let plist_path = plist_path()?;
206 let _ = kill_installed()?;
207
208 println!(
209 "{}",
210 serde_json::to_string_pretty(&serde_json::json!({
211 "ok": true,
212 "service": SERVICE_LABEL,
213 "plist": plist_path,
214 }))?
215 );
216 Ok(())
217}
218
219pub fn kill_installed() -> anyhow::Result<Vec<u32>> {
220 ensure_launch_agent_supported()?;

Callers 2

stop_project_serviceFunction · 0.85
mainFunction · 0.85

Calls 3

plist_pathFunction · 0.85
kill_installedFunction · 0.85

Tested by

no test coverage detected