summaryrefslogtreecommitdiff
path: root/controllers/interfaces/cli.rb
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-05-13 10:45:32 -0300
committericebaker <icebaker@proton.me>2023-05-13 10:45:32 -0300
commitd83ec5192442a9bd8d914c5a4856917b9653583c (patch)
treeca97e1618dd937594dc1da0a13584a46b87613eb /controllers/interfaces/cli.rb
parent805e5073117bc717f46da0fa7f8ab628b4fa2a7d (diff)
improving streams
Diffstat (limited to 'controllers/interfaces/cli.rb')
-rw-r--r--controllers/interfaces/cli.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/controllers/interfaces/cli.rb b/controllers/interfaces/cli.rb
index 3574a80..92e468b 100644
--- a/controllers/interfaces/cli.rb
+++ b/controllers/interfaces/cli.rb
@@ -26,7 +26,9 @@ module NanoBot
params = { cartridge_path: ARGV[0], state: ARGV[1], command: ARGV[2] }
- bot = Instance.new(cartridge_path: params[:cartridge_path], state: params[:state])
+ bot = Instance.new(
+ cartridge_path: params[:cartridge_path], state: params[:state], stream: $stdout
+ )
case params[:command]
when 'eval'