main.go 356 B

1234567891011121314151617181920212223
  1. /*
  2. Copyright © 2025 NAME HERE <EMAIL ADDRESS>
  3. */
  4. package main
  5. import (
  6. "log"
  7. "os"
  8. "github.com/kujtimiihoxha/termai/cmd"
  9. )
  10. func main() {
  11. // Create a log file and make that the log output
  12. logfile, err := os.OpenFile("debug.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
  13. if err != nil {
  14. panic(err)
  15. }
  16. log.SetOutput(logfile)
  17. cmd.Execute()
  18. }