TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

Refactor coloring database/collection names #149

Closed pvdb closed 8 years ago

pvdb commented 8 years ago

Hey @TylerBrock, this PR contains some refactoring (but no functional changes) to the way database and collection names are colorized for the various show and count shell commands... as a consequence of this refactoring, the printPaddedColumns() function is simplified, as it no longer needs to concern itself with coloring any of its columns... this refactoring is prep-work for enabling the printPaddedColumns() function to print out multiple columns (instead of just printing out two, as it currently does).

Basically it's a bit of refactoring to enable the multi-column output/formatting we need for #148

TylerBrock commented 8 years ago

Ok, this seems great. Thanks.

pvdb commented 8 years ago

Awesome, next stage will be the "multi-column output"!

pvdb commented 8 years ago

Awesome, next stage will be the "multi-column output"!

That's done in #150, ready for review and sign off! :smile: