summaryrefslogtreecommitdiff
path: root/ports/dsl/nano-bots.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ports/dsl/nano-bots.rb')
-rw-r--r--ports/dsl/nano-bots.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/dsl/nano-bots.rb b/ports/dsl/nano-bots.rb
index bce169c..40bed1d 100644
--- a/ports/dsl/nano-bots.rb
+++ b/ports/dsl/nano-bots.rb
@@ -7,16 +7,16 @@ require_relative '../../controllers/instance'
require_relative '../../controllers/interfaces/cli'
module NanoBot
- def self.new(cartridge:, state: '-')
- Controllers::Instance.new(cartridge_path: cartridge, state:)
+ def self.new(cartridge: '-', state: '-')
+ Controllers::Instance.new(cartridge_path: cartridge, state:, stream: StringIO.new)
end
def self.cli
Controllers::Interfaces::CLI.handle!
end
- def self.repl(cartridge:, state: '-')
- Controllers::Instance.new(cartridge_path: cartridge, state:).repl
+ def self.repl(cartridge: '-', state: '-')
+ Controllers::Instance.new(cartridge_path: cartridge, state:, stream: $stdout).repl
end
def self.version