initial agent setup

This commit is contained in:
Kujtim Hoxha 2025-03-23 22:25:31 +01:00
parent 8daa6e774a
commit e7258e38ae
29 changed files with 2207 additions and 109 deletions

16
main.go
View file

@ -1,11 +1,23 @@
/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package main
import "github.com/kujtimiihoxha/termai/cmd"
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()
}