1
0
Fork 0
No description
Find a file
Andrew Tomaka 1265f9fb07 Support multiple --name and --match flags with OR logic
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
2025-06-12 21:58:09 -04:00
archiver Implement collect CLI tool 2025-06-12 21:38:00 -04:00
collector Support multiple --name and --match flags with OR logic 2025-06-12 21:58:09 -04:00
go.mod Implement collect CLI tool 2025-06-12 21:38:00 -04:00
main.go Support multiple --name and --match flags with OR logic 2025-06-12 21:58:09 -04:00
plan.md Add implementation plan for collect CLI tool 2025-06-12 21:23:56 -04:00
README.md Initial commit 2025-06-12 21:10:27 -04:00
test.sh Support multiple --name and --match flags with OR logic 2025-06-12 21:58:09 -04:00

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