chore: refactoring status updates
This commit is contained in:
parent
e35ea2d448
commit
f41b7bbd0a
24 changed files with 366 additions and 264 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