main.go 366 B

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