mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 01:34:22 +01:00
initial agent setup
This commit is contained in:
16
main.go
16
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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user