Generate machine-parseable output
cjyar opened this issue · 0 comments
cjyar commented
When I run ironhide file:info {some_file}
, I get output like this:
┌──────────────────────────┬───────────────────────────┬───────────────────────────────────────────┬───────────┬───────────┐
│ File │ Users with access │ Groups with access │ Created │ Updated │
├──────────────────────────┼───────────────────────────┼───────────────────────────────────────────┼───────────┼───────────┤
│ {some_file} │ bob.wall@ironcorelabs.com │ ICL-IT (48dc3c20d11bfd9f408c204e24a248f9) │ 12/6/2018 │ 12/6/2018 │
└──────────────────────────┴───────────────────────────┴───────────────────────────────────────────┴───────────┴───────────┘
It's not easy for a script to parse output like this. It would be nice to have an option to produce machine readable output, possibly:
- plain text, with one field per line
- JSON