1
0
Fork 0
No description
Find a file
Andrew Tomaka eb88ef97c0 Implement collect CLI tool
- Add Go implementation with modular architecture
- Support --name flag for exact filename matching
- Support --match flag for directory glob pattern matching
- Create tar.gz and zip archives preserving directory structure
- Handle errors with appropriate exit codes
- Skip files with permission errors gracefully
- Add comprehensive test suite with 11 test cases
2025-06-12 21:38:00 -04:00
archiver Implement collect CLI tool 2025-06-12 21:38:00 -04:00
collector Implement collect CLI tool 2025-06-12 21:38:00 -04:00
go.mod Implement collect CLI tool 2025-06-12 21:38:00 -04:00
main.go Implement collect CLI tool 2025-06-12 21:38:00 -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 Implement collect CLI tool 2025-06-12 21:38:00 -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