mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
chore: refactoring status updates
This commit is contained in:
parent
e35ea2d448
commit
f41b7bbd0a
24 changed files with 367 additions and 265 deletions
3
main.go
3
main.go
|
@ -3,11 +3,12 @@ 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() {
|
||||
logging.ErrorPersist("Application terminated due to unhandled panic")
|
||||
status.Error("Application terminated due to unhandled panic")
|
||||
})
|
||||
|
||||
cmd.Execute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue