2025-03-24 02:19:08 +08:00
|
|
|
package main
|
|
|
|
|
|
2025-03-24 05:25:31 +08:00
|
|
|
import (
|
2025-05-13 23:02:39 +08:00
|
|
|
"github.com/sst/opencode/cmd"
|
|
|
|
|
"github.com/sst/opencode/internal/logging"
|
|
|
|
|
"github.com/sst/opencode/internal/status"
|
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() {
|
2025-05-09 01:03:59 +08:00
|
|
|
status.Error("Application terminated due to unhandled panic")
|
2025-04-17 02:06:23 +08:00
|
|
|
})
|
2025-04-17 06:00:19 +08:00
|
|
|
|
2025-03-24 02:19:08 +08:00
|
|
|
cmd.Execute()
|
|
|
|
|
}
|