()
| 98 | } |
| 99 | |
| 100 | pub fn installed_port() -> anyhow::Result<Option<u16>> { |
| 101 | if !launch_agent_supported() { |
| 102 | return Ok(None); |
| 103 | } |
| 104 | Ok(installed_argument_value("--port")?.and_then(|value| value.parse::<u16>().ok())) |
| 105 | } |
| 106 | |
| 107 | pub fn active() -> anyhow::Result<Option<ServiceInstallResult>> { |
| 108 | if !launch_agent_supported() { |
no test coverage detected