RhetTbull / osxmetadata

Python package to read and write various MacOS extended attribute metadata such as tags/keywords and Finder comments from files. Includes CLI tool for reading/writing metadata.
MIT License
125 stars 4 forks source link

Add --format option to --list #78

Open RhetTbull opened 2 years ago

RhetTbull commented 2 years ago

See discussion in #75. Add --format [json,csv,tsv] to --list that outputs the format in JSON, CSV, or TSV format. This allows user to create a report of metadata for one or more files.

Extend --include, --exclude (#76) to this new option as well.

JSON indentation could be specified thusly:

--format json:2 uses indent of 2 --format json:4 uses indent of 4, and so on --format json uses 0 indent