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

Function pair

packages/server/src/service.rs:53–60  ·  view source on GitHub ↗
(mut options: ServiceOptions)

Source from the content-addressed store, hash-verified

51}
52
53pub fn pair(mut options: ServiceOptions) -> anyhow::Result<ServiceInstallResult> {
54 ensure_launch_agent_supported()?;
55 preserve_or_create_credentials(&mut options);
56 if let Some(result) = reuse_running_service_if_matching(&options)? {
57 return Ok(result);
58 }
59 install(options)
60}
61
62fn preserve_or_create_credentials(options: &mut ServiceOptions) {
63 let existing_credentials = installed_credentials().unwrap_or(None);

Callers 2

pair_global_serviceFunction · 0.85

Calls 4

installFunction · 0.85

Tested by

no test coverage detected