CleverRaven/Cataclysm-DDA — pull request #8721 by jeremyosborne (2014-08-28 04:34:14+00:00)
Title: Formatter for the JSON template that starts to conform to the standards I see in the JSON files

I guess I'm building a tool that makes templating from existing items, recipes, item groups, etc. from the command line possible. I started off not knowing what I really wanted, other than something other than grep or an editor (Netbeans, Atom.io, etc), and some way of treating the JSON objects in CDDA as a stream.

To do templating, I needed the basis of something that didn't then make me spend five minutes reformatting things so they didn't make other people's eye's bleed.

I can now do

./pluck.py result "^pie$"

and get the pie recipe.

Next step is to be able to say something like:

./rebuild.py result "^pie$"

And update pieces of the pie recipe via an interactive prompt. Or at least that's the dream.