• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CowDogMoo / bcp / 19997570054

07 Dec 2025 02:15AM UTC coverage: 52.857% (-13.4%) from 66.227%
19997570054

push

github

web-flow
feat: add support for copying files from EC2 instances to local (#9)

**Key Changes:**

- Implemented bidirectional file transfer: copy both to and from EC2 instances
- Updated command parsing and validation to support remote-to-local transfers
- Extended S3 and SSM interfaces and logic for downloads and cleanup
- Improved documentation and usage examples for bidirectional transfer

**Added:**

- Transfer direction detection and handling in CLI, supporting both upload (to remote) and download (from remote) operations
- `TransferDirection` type in the model, with `ToRemote` and `FromRemote` values
- `ExecuteFromRemoteWithClients` function in transfer logic to handle remote-to-local transfers, including directory and file downloads and S3 cleanup
- S3 interface methods for `GetObject`, `DeleteObject`, and `ListObjectsV2` to enable file and directory downloads and cleanup
- `ValidateDestinationPath` function to ensure safe local destination paths when downloading from remote
- Documentation and usage examples for copying files from remote EC2 instances to local

**Changed:**

- Command usage and argument parsing to distinguish between upload and download scenarios in `cmd/root.go`
- Transfer config struct to include transfer direction
- Test mocks and test cases to account for the new transfer direction and S3 interface changes
- `README.md` to document bidirectional transfer capabilities, including new usage and examples

**Removed:**

- Deprecated `ExecuteWithClients` in favor of explicit direction-specific transfer functions

29 of 242 new or added lines in 3 files covered. (11.98%)

518 of 980 relevant lines covered (52.86%)

4.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.54
/pkg/validation/input.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc