diff options
author | icebaker <icebaker@proton.me> | 2023-05-13 10:45:32 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-05-13 10:45:32 -0300 |
commit | d83ec5192442a9bd8d914c5a4856917b9653583c (patch) | |
tree | ca97e1618dd937594dc1da0a13584a46b87613eb /controllers/interfaces/cli.rb | |
parent | 805e5073117bc717f46da0fa7f8ab628b4fa2a7d (diff) |
improving streams
Diffstat (limited to 'controllers/interfaces/cli.rb')
-rw-r--r-- | controllers/interfaces/cli.rb | 4 |
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' |