briandorsey / wavrw

wavrw is a command line tool to read and write WAV files with a focus on visualizing the structure of files and parsing metadata.
Apache License 2.0
2 stars 1 forks source link

CLI: add a `find` or `grep` command to search for files which contain certain chunk types #28

Closed briandorsey closed 6 months ago

briandorsey commented 6 months ago

In the short term, I need this for better testing: to find real files which contain various chunks I'm trying to implement. Also, probably just generally useful.

Design question: limit to searching just for the presence of chunks? Or extend to searching for certain metadata fields within the chunks?

Design question: implement file globbing and directory recursion? Or limit to one file for now and just have one line, grep friendly output format?

briandorsey commented 6 months ago

Rather than committing to a large feature (which would probably end up eventually with an embedded search language or something), better to start with a "list" mode which lists file names and chunk IDs on one line... allow folks to use other tools to filter.