IronCoreLabs / ironhide

Tool to easily encrypt and decrypt files to users and groups. Similar to GPG, but usable at scale.
GNU Affero General Public License v3.0
44 stars 6 forks source link

Generate machine-parseable output #25

Open cjyar opened 4 years ago

cjyar commented 4 years ago

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: