Introducing the console_cmdr gem

require 'console_cmdr'
      
ccmdr = ConsoleCmdr.new
ccmdr.start

Observed:

welcome, this code is powered by the cmdr gem

> time
2016-10-30 16:04:46 +0000
> time
2016-10-30 16:04:48 +0000
command not found >> "tes"
command not found >> "hello"
command not found >> "ready"
> time
2016-10-30 16:35:24 +0000

Resources