No description
Allow users to specify multiple --name and --match flags in any combination. Files matching ANY of the specified criteria are collected, following standard Linux command conventions like grep -e and rsync --include. Changes: - Add CompositeMatcher for combining multiple matchers with OR logic - Update CLI to accept multiple flag values using custom stringSlice type - Add comprehensive tests for multiple flag combinations - Update usage message with examples of multiple flag usage |
||
---|---|---|
archiver | ||
collector | ||
go.mod | ||
main.go | ||
plan.md | ||
README.md | ||
test.sh |
collect
CLI tool that collects files recursively matching specific names, maintains their file structure, and adds them to an archive for backup.
Examples
Finds all files named .mise.toml
collect --name .mise.toml ./ backup.tgz
Finds all files nested in a directory that glob matches aet-* (ie. aet-bin)
collect --match aet-*/ ./ backup.zip