I wrote a similar CLI in Ruby (https://github.com/jpb/rb) inspired by the Python equivalent (https://github.com/Russell91/pythonpy). I've never really used rb though - these tools are very limited by their dependencies (in comparison to the common unix utilities you find on almost every system).