summaryrefslogtreecommitdiff
path: root/controllers/interfaces
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-05-13 12:47:32 -0300
committericebaker <icebaker@proton.me>2023-05-13 12:47:32 -0300
commit0410850a980424f3585f2c438c93a402851ee27a (patch)
tree1debcbe558981edf4470fbc8fad9c27b58ecb9b4 /controllers/interfaces
parent38df98d7b3250230376c4141e0e784d1e69ad481 (diff)
improving state api
Diffstat (limited to 'controllers/interfaces')
-rw-r--r--controllers/interfaces/cli.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/interfaces/cli.rb b/controllers/interfaces/cli.rb
index 2a93044..da027f7 100644
--- a/controllers/interfaces/cli.rb
+++ b/controllers/interfaces/cli.rb
@@ -54,9 +54,9 @@ module NanoBot
when 'repl'
bot.repl
when 'state'
- bot.state
+ pp bot.state
when 'cartridge'
- bot.cartridge
+ puts YAML.dump(bot.cartridge)
else
raise "TODO: [#{params[:command]}]"
end