1
0
Fork 0
No description
Find a file
Andrew Tomaka 814e0650de Fix test suite cleanup to handle failures and interruptions
Add proper cleanup handling using bash trap to ensure test artifacts
are removed regardless of how the test script exits.

Changes:
- Add cleanup() function to remove all test artifacts
- Set trap to call cleanup on EXIT (success, failure, or interruption)
- Remove redundant manual cleanup since trap handles it automatically
- Add error suppression to prevent cleanup failures

This fixes the defect where test artifacts would remain if a test failed
or the script was interrupted before reaching the manual cleanup section.
2025-06-12 22:15:27 -04:00
archiver Apply standard Go formatting and update project documentation 2025-06-12 22:02:26 -04:00
collector Add directory filtering with --include-dir and --exclude-dir flags 2025-06-12 22:12:45 -04:00
CLAUDE.md Apply standard Go formatting and update project documentation 2025-06-12 22:02:26 -04:00
go.mod Implement collect CLI tool 2025-06-12 21:38:00 -04:00
main.go Add directory filtering with --include-dir and --exclude-dir flags 2025-06-12 22:12:45 -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 Fix test suite cleanup to handle failures and interruptions 2025-06-12 22:15:27 -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