Since tree-magic-mini removes the integrated cli, this is that same CLI in a standalone crate.
cargo install tree-magic-cli
tmagic 1.0.0
Determines the MIME type of a file by traversing a filetype tree.
USAGE:
tmagic [FLAGS] [OPTIONS] <file>...
FLAGS:
-h, --help Prints help information
-r, --recursive Search directories recursively
--ugly Print results as they come in, at expense of tab alignment
-V, --version Prints version information
OPTIONS:
-m, --match=<match> Print only files that match given MIMEs, seperated by commas
ARGS:
<file>... List of files or folders to check. Wildcards supported.