summaryrefslogtreecommitdiffhomepage
path: root/main.go
blob: 1115d368b1a927feba947bfa8a4cac39ad24f931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"github.com/opencode-ai/opencode/cmd"
	"github.com/opencode-ai/opencode/internal/logging"
	"github.com/opencode-ai/opencode/internal/status"
)

func main() {
	defer logging.RecoverPanic("main", func() {
		status.Error("Application terminated due to unhandled panic")
	})

	cmd.Execute()
}