blob: 5d8eb435075e8b42f9119b2438182e1c52911712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package main
import (
"log"
"os"
"github.com/kujtimiihoxha/termai/cmd"
)
func main() {
// 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)
cmd.Execute()
}
|