akaIDIOT / Digestive

Digest combination trickery
ISC License
0 stars 0 forks source link

Output to human and machine readable log #7

Closed akaIDIOT closed 9 years ago

akaIDIOT commented 9 years ago

Something like a multi-document YAML file would be very suited for this. The --- separator is clear to humans and allows a program (maybe digestive --verify / --check) to stream the document.

So, something like the following:

file: tests/files/random.dd
md5: 257f5c2913ea856cb0a2313f167452d4
sha256: 810ec5f2086379f0e8000456dbf2aede8538fbc9d9898835f114c8771ed834b5

---
file: tests/files/random.E01
md5: 257f5c2913ea856cb0a2313f167452d4
sha256: 810ec5f2086379f0e8000456dbf2aede8538fbc9d9898835f114c8771ed834b5
akaIDIOT commented 9 years ago

Rough implementation is done, seems to work quite nicely. Tests don't cover it though, will add soon.