(args: ReadonlyArray<string>)
| 299 | } |
| 300 | |
| 301 | const launchctl = async (args: ReadonlyArray<string>): Promise<boolean> => { |
| 302 | try { |
| 303 | await execFileAsync("launchctl", [...args]); |
| 304 | return true; |
| 305 | } catch { |
| 306 | return false; |
| 307 | } |
| 308 | }; |
| 309 | |
| 310 | const captureLaunchdService = (): LaunchdServiceSnapshot | null => { |
| 311 | if (process.platform !== "darwin") return null; |
no outgoing calls
no test coverage detected