Crates.io | fuzip |
lib.rs | fuzip |
version | 0.1.1 |
source | src |
created_at | 2024-09-01 16:37:14.790863 |
updated_at | 2024-09-01 16:37:14.790863 |
description | Fuzzy zipping for scripting |
homepage | |
repository | https://codeberg.org/alpha-tango-kilo/fuzip |
max_upload_size | |
id | 1359756 |
size | 33,853 |
fuzip
- fuzzy zipping for scriptingTrying to match separate collections of stuff together for zipping
For example, say you have a folder of audio tracks, and a folder of video tracks. They follow a similar, but not identical naming scheme.
If there are 50 files in each and you want to combine the corresponding pairs with ffmpeg or something, you do not want to do this by hand, but also this really doesn't feel like something you should have to crack out a high level scripting langauge for.
That's where fuzip
wants to come in - you'd point it at both the two folders and it'd output the most likely pairs of of files.
I'd also plan on having some kind of command execution support with templating, similar to xargs
and find
.
Usage: fuzip [OPTIONS] [DIR] [DIR]...
Arguments:
[DIR] [DIR]...
Directories to match files from
Options:
-v, --verbose
Print commands before executing them
-x, --exec <EXEC>
The command template to execute
Use 1-based indices surrounded by curly brackets to substite, e.g. "echo {1} {2}"
-n, --dry-run
Don't run command, just show what would be run
--full-only
Only show complete zips, no partial ones
--filter <REGEX>
Ignore any values (from any input) that don't match this regular expression
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
Maybe try N collection zipping
Customisable handling of incomplete matching (e.g. if one folder has ten files and the other has seven)
Abstraction over inputs: support reading from files instead of using directory listings etc.