diff options
author | icebaker <icebaker@proton.me> | 2023-05-13 11:26:58 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-05-13 11:26:58 -0300 |
commit | 7da6076e7448bea2776749af5d937fc841b5682d (patch) | |
tree | 768bcfe401b659b231e445f252e296e201e2589d /controllers/interfaces/cli.rb | |
parent | 867f7bd1eaf4801cd894d067a39df62ac4249a27 (diff) |
debugging
Diffstat (limited to 'controllers/interfaces/cli.rb')
-rw-r--r-- | controllers/interfaces/cli.rb | 30 |
1 files changed, 24 insertions, 6 deletions
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 |