pandastrike / yaml-cli

A simple CLI for querying and updating YAML files
ISC License
86 stars 5 forks source link

format subcommand #12

Open dyoder opened 8 years ago

dyoder commented 8 years ago

This would basically be the same as the template subcommand, only it takes the template as a string. (Could also be a flag for template but the intent is to allow you to format YAML, so I think format is more descriptive.)

$ yaml format foo.yaml '{{jam}} is my sh*t'
Liam Neeson is my sh*t