From 7da6076e7448bea2776749af5d937fc841b5682d Mon Sep 17 00:00:00 2001
From: icebaker <icebaker@proton.me>
Date: Sat, 13 May 2023 11:26:58 -0300
Subject: debugging

---
 controllers/interfaces/cli.rb | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

(limited to 'controllers/interfaces/cli.rb')

diff --git a/controllers/interfaces/cli.rb b/controllers/interfaces/cli.rb
index 92e468b..2a93044 100644
--- a/controllers/interfaces/cli.rb
+++ b/controllers/interfaces/cli.rb
@@ -13,14 +13,30 @@ module NanoBot
             puts NanoBot::GEM[:version]
             exit
           when 'help', '', nil
+            puts ''
             puts "Nano Bots #{NanoBot::GEM[:version]}"
-            puts '  nb cartridge.yml - eval "Hello"'
+            puts ''
+            puts '  nb - - eval "hello"'
+            puts '  nb - - repl'
+            puts ''
+            puts '  nb cartridge.yml - eval "hello"'
             puts '  nb cartridge.yml - repl'
-            puts '  nb cartridge.yml - debug'
-            puts '  nb cartridge.yml STATE-KEY eval "Hello"'
+            puts ''
+            puts '  nb - STATE-KEY eval "hello"'
+            puts '  nb - STATE-KEY repl'
+            puts ''
+            puts '  nb cartridge.yml STATE-KEY eval "hello"'
             puts '  nb cartridge.yml STATE-KEY repl'
-            puts '  nb cartridge.yml STATE-KEY debug'
+            puts ''
+            puts '  nb - - cartridge'
+            puts '  nb cartridge.yml - cartridge'
+            puts ''
+            puts '  nb - STATE-KEY state'
+            puts '  nb cartridge.yml STATE-KEY state'
+            puts ''
             puts '  nb version'
+            puts '  nb help'
+            puts ''
             exit
           end
 
@@ -37,8 +53,10 @@ module NanoBot
             bot.eval(params[:input])
           when 'repl'
             bot.repl
-          when 'debug'
-            bot.debug
+          when 'state'
+            bot.state
+          when 'cartridge'
+            bot.cartridge
           else
             raise "TODO: [#{params[:command]}]"
           end
-- 
cgit v1.2.3