tui: add reload functionality and improve lazy utility with reset capability

This commit is contained in:
Dax Raad
2026-01-01 22:11:38 -05:00
parent d60393835c
commit 389a5fc017
5 changed files with 44 additions and 20 deletions

View File

@@ -77,6 +77,9 @@ export const TuiThreadCommand = cmd({
process.on("unhandledRejection", (e) => {
Log.Default.error(e)
})
process.on("SIGUSR2", async () => {
await client.call("reload", undefined)
})
const opts = await resolveNetworkOptions(args)
const server = await client.call("server", opts)
const prompt = await iife(async () => {