()
| 216 | |
| 217 | let stopped = false |
| 218 | const stop = async () => { |
| 219 | if (stopped) return |
| 220 | stopped = true |
| 221 | process.off("SIGUSR2", reload) |
| 222 | await withTimeout(client.call("shutdown", undefined), 5000).catch(() => {}) |
| 223 | worker.terminate() |
| 224 | } |
| 225 | |
| 226 | const prompt = await input(args.prompt) |
| 227 | const config = await TuiConfig.get() |
no test coverage detected