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, 7 insertions, 1 deletions
diff --git a/ports/dsl/nano-bots.rb b/ports/dsl/nano-bots.rb
index 40bed1d..89da466 100644
--- a/ports/dsl/nano-bots.rb
+++ b/ports/dsl/nano-bots.rb
@@ -3,12 +3,18 @@
require 'dotenv/load'
require_relative '../../static/gem'
+require_relative '../../controllers/cartridges'
require_relative '../../controllers/instance'
require_relative '../../controllers/interfaces/cli'
+require_relative '../../components/stream'
module NanoBot
def self.new(cartridge: '-', state: '-')
- Controllers::Instance.new(cartridge_path: cartridge, state:, stream: StringIO.new)
+ Controllers::Instance.new(cartridge_path: cartridge, state:, stream: Components::Stream.new)
+ end
+
+ def self.cartridges
+ Controllers::Cartridges.all
end
def self.cli