feat(repl): Replace StdIO when executing IO-based monads #231

Merged
aniva merged 2 commits from repl/replace-io into dev 2025-07-08 14:30:51 -07:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 855a882f7b - Show all commits

View File

@ -269,7 +269,7 @@ def execute (command: Protocol.Command): MainM Json := do
| .ok args => do
let (msg, result) ← IO.FS.withIsolatedStreams (isolateStderr := false) $ comm args
if !msg.isEmpty then
IO.eprintln s!"stdout: {msg}"
IO.eprint s!"stdout: {msg}"
match result with
| .ok result => return toJson result
| .error ierror => return toJson ierror