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
This would basically be the same as the
template
subcommand, only it takes the template as a string. (Could also be a flag fortemplate
but the intent is to allow you to format YAML, so I thinkformat
is more descriptive.)