MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / enable

Function enable

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

Source from the content-addressed store, hash-verified

27}
28
29pub fn enable(mut options: ServiceOptions) -> anyhow::Result<()> {
30 ensure_launch_agent_supported()?;
31 preserve_or_create_credentials(&mut options);
32 if let Some(result) = reuse_running_service_if_matching(&options)? {
33 return print_install_result(&result);
34 }
35 let result = install(options)?;
36 print_install_result(&result)
37}
38
39pub fn restart(mut options: ServiceOptions) -> anyhow::Result<()> {
40 ensure_launch_agent_supported()?;

Callers 1

mainFunction · 0.85

Calls 5

print_install_resultFunction · 0.85
installFunction · 0.85

Tested by

no test coverage detected