Reworked the read loop and added a more proper exit method

This commit is contained in:
2025-10-21 21:59:13 +01:00
parent ba3dcebb27
commit d1d9106e2e
2 changed files with 33 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ var (
Name: ".exit",
Usage: " type `.exit` to exit this REPL",
Action: func(r *REPL, args []string) error {
os.Exit(0)
r.Stop = true
return nil
},
}