summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-03-23 22:25:31 +0100
committerKujtim Hoxha <[email protected]>2025-03-23 22:25:31 +0100
commite7258e38aeb46281fda474b8b7fcc3eee35edd9f (patch)
tree0ae4a7558b3942519ff137aed7c3cd6a9b473bf5 /main.go
parent8daa6e774a6e02698c90392e7b2008542f789594 (diff)
downloadopencode-e7258e38aeb46281fda474b8b7fcc3eee35edd9f.tar.gz
opencode-e7258e38aeb46281fda474b8b7fcc3eee35edd9f.zip
initial agent setup
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.go b/main.go
index 370311e99..5d8eb4350 100644
--- a/main.go
+++ b/main.go
@@ -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()
}