summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-06-03 19:13:26 -0300
committericebaker <icebaker@proton.me>2023-06-03 19:13:26 -0300
commitcb8a84a60773cfe9e7fab03d93fc6430e4574351 (patch)
tree27839477aafb56128804393a328c94d341d5b394 /ports
parent2c50a06b68a21ce904e5dfd15833e3569ff64bfa (diff)
add cryptography to state and user identifiers
Diffstat (limited to 'ports')
-rw-r--r--ports/dsl/nano-bots.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/ports/dsl/nano-bots.rb b/ports/dsl/nano-bots.rb
index 89da466..cbfe7f9 100644
--- a/ports/dsl/nano-bots.rb
+++ b/ports/dsl/nano-bots.rb
@@ -9,8 +9,13 @@ require_relative '../../controllers/interfaces/cli'
require_relative '../../components/stream'
module NanoBot
- def self.new(cartridge: '-', state: '-')
- Controllers::Instance.new(cartridge_path: cartridge, state:, stream: Components::Stream.new)
+ def self.new(cartridge: '-', state: '-', environment: {})
+ Controllers::Instance.new(
+ cartridge_path: cartridge,
+ state:,
+ stream: Components::Stream.new,
+ environment:
+ )
end
def self.cartridges
@@ -21,8 +26,10 @@ module NanoBot
Controllers::Interfaces::CLI.handle!
end
- def self.repl(cartridge: '-', state: '-')
- Controllers::Instance.new(cartridge_path: cartridge, state:, stream: $stdout).repl
+ def self.repl(cartridge: '-', state: '-', environment: {})
+ Controllers::Instance.new(
+ cartridge_path: cartridge, state:, stream: $stdout, environment:
+ ).repl
end
def self.version