- 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
8 lines
No EOL
210 B
Go
8 lines
No EOL
210 B
Go
package archiver
|
|
|
|
import "github.com/atomaka/collect/collector"
|
|
|
|
// Archiver defines the interface for creating archives
|
|
type Archiver interface {
|
|
Create(outputPath string, files []collector.FileEntry) error
|
|
} |