diff options
author | icebaker <icebaker@proton.me> | 2023-06-03 19:13:26 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-06-03 19:13:26 -0300 |
commit | cb8a84a60773cfe9e7fab03d93fc6430e4574351 (patch) | |
tree | 27839477aafb56128804393a328c94d341d5b394 /ports/dsl | |
parent | 2c50a06b68a21ce904e5dfd15833e3569ff64bfa (diff) |
add cryptography to state and user identifiers
Diffstat (limited to 'ports/dsl')
-rw-r--r-- | ports/dsl/nano-bots.rb | 15 |
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 |