(options: ServiceInstallOptions)
| 275 | // ── Public API ──────────────────────────────────────────────────────── |
| 276 | |
| 277 | export function serviceInstall(options: ServiceInstallOptions): void { |
| 278 | switch (process.platform) { |
| 279 | case 'darwin': |
| 280 | return installMacos(options) |
| 281 | case 'linux': |
| 282 | return installLinux(options) |
| 283 | default: |
| 284 | console.error('Windows is not yet supported for daemon mode.') |
| 285 | console.error('Please use `chatlab start` to run in the foreground instead.') |
| 286 | process.exit(1) |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | export function serviceUninstall(): void { |
| 291 | switch (process.platform) { |
no test coverage detected