heapwolf / ldb

A C++ REPL / CLI for LevelDB
MIT License
201 stars 23 forks source link

Only print JSON in interactive mode #62

Closed nickadam closed 5 years ago

nickadam commented 5 years ago

When retrieving JSON values for a shell script ldb pretty formats the output and adds colors. This is a problem when using ldb non-interactively in a shell script or whatever. screen shot 2018-09-18 at 9 04 46 am

This changes the behavior to only output JSON in interactive mode. screen shot 2018-09-18 at 9 08 49 am

heapwolf commented 5 years ago

👍 🎉