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

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

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

	cmd.Execute()
}