Function
serviceManagerName
(platform: ReturnType<typeof getServiceBackend>["platform"])
Source from the content-addressed store, hash-verified
| 3001 | ); |
| 3002 | |
| 3003 | const serviceManagerName = (platform: ReturnType<typeof getServiceBackend>["platform"]): string => { |
| 3004 | switch (platform) { |
| 3005 | case "darwin": |
| 3006 | return "launchd"; |
| 3007 | case "linux": |
| 3008 | return "systemd --user"; |
| 3009 | case "win32": |
| 3010 | return "Windows Task Scheduler"; |
| 3011 | case "unsupported": |
| 3012 | return "manual setup"; |
| 3013 | } |
| 3014 | }; |
| 3015 | |
| 3016 | const installService = (port: number, commandName: string, boot = false) => |
| 3017 | Effect.gen(function* () { |
Tested by
no test coverage detected