opencode/main.go

24 lines
356 B
Go
Raw Normal View History

2025-03-24 02:19:08 +08:00
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package main
2025-03-24 05:25:31 +08:00
import (
"log"
"os"
"github.com/kujtimiihoxha/termai/cmd"
)
2025-03-24 02:19:08 +08:00
func main() {
2025-03-24 05:25:31 +08:00
// Create a log file and make that the log output
logfile, err := os.OpenFile("debug.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
if err != nil {
panic(err)
}
log.SetOutput(logfile)
2025-03-24 02:19:08 +08:00
cmd.Execute()
}