()
| 40 | } |
| 41 | |
| 42 | function exitCli(): void { |
| 43 | if (IS_FREEBUFF) { |
| 44 | void exitFreebuffCleanly() |
| 45 | return |
| 46 | } |
| 47 | |
| 48 | withTimeout(flushAnalytics(), EXIT_FLUSH_TIMEOUT_MS, undefined).finally( |
| 49 | () => { |
| 50 | process.exit(0) |
| 51 | }, |
| 52 | ) |
| 53 | } |
| 54 | |
| 55 | export const useExitHandler = ({ |
| 56 | inputValue, |
no test coverage detected