summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-05-16 19:22:55 -0300
committericebaker <icebaker@proton.me>2023-05-16 19:22:55 -0300
commit7342f83ab5c42b7aa8ac5e3bb258c1447f863357 (patch)
treefcf7f20cf80107e963df122cf560e8d9fd5e9495 /ports
parentaf8af02155c22d91c9fef95ce46b863c7ed4c40e (diff)
improving stream flow
Diffstat (limited to 'ports')
-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