pandastrike / yaml-cli

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

batch subcommands #13

Open dyoder opened 8 years ago

dyoder commented 8 years ago

This might be cool for scenarios where you have to do several set operations at once.

$ yaml foo.yaml \
  set pets.0.type dog \
  set pets.0.name fido \
  set pets.1.type cat \
  set pets.1.name morris \
  > bar.yaml
dyoder commented 8 years ago

Rationale here is efficiency, avoids reparsing with separate invocations.

dyoder commented 8 years ago

You could terminate this with template or format so it's not just set.