From 0410850a980424f3585f2c438c93a402851ee27a Mon Sep 17 00:00:00 2001 From: icebaker Date: Sat, 13 May 2023 12:47:32 -0300 Subject: improving state api --- controllers/interfaces/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers/interfaces') 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 -- cgit v1.2.3