(unitPath: string, plan: InstallPlan)
| 212 | } |
| 213 | |
| 214 | function writeUnit(unitPath: string, plan: InstallPlan): void { |
| 215 | const text = buildSystemdUnit({ |
| 216 | description: 'Kimi Code local server (managed by `kimi server install`)', |
| 217 | programArguments: plan.programArguments, |
| 218 | }); |
| 219 | mkdirSync(dirname(unitPath), { recursive: true, mode: UNIT_DIR_MODE }); |
| 220 | writeFileSync(unitPath, text, { mode: UNIT_MODE }); |
| 221 | } |
| 222 | |
| 223 | function detail(res: ExecResult): string | undefined { |
| 224 | const text = (res.stderr || res.stdout).trim(); |
no test coverage detected