TylerBrock/mongo-hacker — pull request #19 by nigelmcnie (2012-11-16 04:42:22+00:00)
Title: Add mongo tabular

Here's mongo-tabular, bundled into mongo-hacker. Some notes:

I tried getting colorization working, but it's more complicated than it appears. The tabular output has to calculate widths, and the control characters cause problems, as they're invisible, yet count towards the length of the output. I had a couple of attempts at getting it working regardless, but didn't succeed.

As a result, I had to move your overridden tojson to tojson_c(). I think this is a good idea regardless, overriding core functions is probably going to end badly if upstream ever changes theirs.

I didn't refactor things so that you get the verbose/index/more indicator - although note that you can't actually use 'it' with tabular at the moment anyway.