refactor(tui): centralize application exit

This commit is contained in:
Dax Raad
2026-06-09 10:23:09 -04:00
parent 7c1e61af1e
commit ffd38aade4
19 changed files with 150 additions and 332 deletions
+1 -1
View File
@@ -213,12 +213,12 @@ export const TuiThreadCommand = cmd({
} finally {
await stop()
}
process.exit(0)
} finally {
try {
unguard?.()
} catch {}
}
process.exit(0)
},
})
// scratch