class Byebug::CommandProcessor
def one_cmd(commands, context, input)
Executes a single byebug command
#
def one_cmd(commands, context, input) if cmd = commands.find{ |c| c.match(input) } if context.dead? && cmd.class.need_context print "Command is unavailable\n" else cmd.execute end else unknown_cmd = commands.find{ |c| c.class.unknown } if unknown_cmd unknown_cmd.execute else errmsg "Unknown command: \"#{input}\". Try \"help\".\n" end end end