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