2025-03-24 02:19:08 +08:00
|
|
|
package main
|
|
|
|
|
|
2025-03-24 05:25:31 +08:00
|
|
|
import (
|
2025-04-25 00:25:52 +08:00
|
|
|
"github.com/opencode-ai/opencode/cmd"
|
|
|
|
|
"github.com/opencode-ai/opencode/internal/logging"
|
2025-03-24 05:25:31 +08:00
|
|
|
)
|
2025-03-24 02:19:08 +08:00
|
|
|
|
|
|
|
|
func main() {
|
2025-04-17 02:06:23 +08:00
|
|
|
defer logging.RecoverPanic("main", func() {
|
|
|
|
|
logging.ErrorPersist("Application terminated due to unhandled panic")
|
|
|
|
|
})
|
2025-04-17 06:00:19 +08:00
|
|
|
|
2025-03-24 02:19:08 +08:00
|
|
|
cmd.Execute()
|
|
|
|
|
}
|