main.go
1package main
2
3import (
4 "log"
5 "os"
6
7 "github.com/kujtimiihoxha/termai/cmd"
8)
9
10func main() {
11 // Create a log file and make that the log output DEBUG
12 // TODO: remove this on release
13 logfile, err := os.OpenFile("debug.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
14 if err != nil {
15 panic(err)
16 }
17
18 log.SetOutput(logfile)
19
20 cmd.Execute()
21}