hollasch/drives

Add machine-parseable output option

Closed this issue · 2 comments

Add an option (possibly -m/--machine or -p/--parseable) to output full drive details in a way that is easily parseable from scripts or other programs. Something like:

A.label: "Volume 1"
A.name: "?\12345678-9876-5432-113399775544"
A.infoValid: true
A.serialNumber: 55641223
A.fileSystemType: "NTFS"
A.maxComponentLength: 260
A.fileSysFlags: 9aff1006
A.netMap: null

B.label: "Volume 2"
B.name: "?\af110048-11fd-a0a4-2202-14fdb04519f8"
B.infoValid: true
B.serialNumber: ...

Fields could also be colon separated, like this:

A:label: "Volume 1"

Done.