()
| 201 | } |
| 202 | |
| 203 | pub 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 | |
| 219 | pub fn kill_installed() -> anyhow::Result<Vec<u32>> { |
| 220 | ensure_launch_agent_supported()?; |
no test coverage detected