blob: 2e6954646852703947bab5ccf5783032cf56c169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package main
import (
"github.com/kujtimiihoxha/termai/cmd"
"github.com/kujtimiihoxha/termai/internal/logging"
)
func main() {
// Set up panic recovery for the main function
defer logging.RecoverPanic("main", func() {
// Perform any necessary cleanup before exit
logging.ErrorPersist("Application terminated due to unhandled panic")
})
cmd.Execute()
}
|