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

Function print_install_result

packages/server/src/service.rs:188–201  ·  view source on GitHub ↗
(result: &ServiceInstallResult)

Source from the content-addressed store, hash-verified

186}
187
188fn print_install_result(result: &ServiceInstallResult) -> anyhow::Result<()> {
189 println!(
190 "{}",
191 serde_json::to_string_pretty(&serde_json::json!({
192 "ok": true,
193 "service": result.service,
194 "plist": result.plist_path,
195 "stdoutLog": result.stdout_log,
196 "stderrLog": result.stderr_log,
197 "port": result.port,
198 }))?
199 );
200 Ok(())
201}
202
203pub fn disable() -> anyhow::Result<()> {
204 ensure_launch_agent_supported()?;

Callers 3

enableFunction · 0.85
restartFunction · 0.85
resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected