mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-29 21:36:41 -04:00
Replace most occurrences of os.Exit(0) in the backend and sync packages with a custom backend.Exit function that can allow "soft exit" in GUI/TUI environments to avoid killing the entire process; currently all major errors still result in killing the entire process
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
//go:build !returnOnExit
|
||||
|
||||
package backend
|
||||
|
||||
import "os"
|
||||
|
||||
func Exit(code int) {
|
||||
os.Exit(code)
|
||||
}
|
||||
Reference in New Issue
Block a user