main.go

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