jqnatividad / qsv

Blazing-fast Data-Wrangling toolkit
https://qsv.dathere.com
The Unlicense
2.52k stars 71 forks source link

add mime-type checking; better panic handling #2304

Closed jqnatividad closed 16 hours ago

jqnatividad commented 16 hours ago

beyond just checking the file extension, actually go the extra mile and do mime-type inferencing. can be turned off by setting QSV_SKIP_FORMAT_CHECK env var.

Leveraged the file-format crate that is already being used by qsv for the sniff command.

Also, added better panic UI/UX with human-panic crate.

resolves #2301