diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-23 22:25:31 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-23 22:25:31 +0100 |
| commit | e7258e38aeb46281fda474b8b7fcc3eee35edd9f (patch) | |
| tree | 0ae4a7558b3942519ff137aed7c3cd6a9b473bf5 /main.go | |
| parent | 8daa6e774a6e02698c90392e7b2008542f789594 (diff) | |
| download | opencode-e7258e38aeb46281fda474b8b7fcc3eee35edd9f.tar.gz opencode-e7258e38aeb46281fda474b8b7fcc3eee35edd9f.zip | |
initial agent setup
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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() } |
