Skip to content

feat: add dry-run mode#10

Merged
VeryBaaad merged 6 commits intomainfrom
feat/dryrun
Apr 20, 2026
Merged

feat: add dry-run mode#10
VeryBaaad merged 6 commits intomainfrom
feat/dryrun

Conversation

@VeryBaaad
Copy link
Copy Markdown
Contributor

@VeryBaaad VeryBaaad commented Apr 20, 2026

Add the --dry-run parameter. When enabled, it simulates the file overwrite process without actually writing data.

This prevents accidental data loss and facilitates testing of target path permissions, file size parsing, and other logic.
Return early in process_file to skip calling overwrite_with_random.

- Remove Args::parse() call inside process_file to avoid redundant parsing
- Add dry_run bool parameter for explicit dependency injection
- Prepare for safe parallel execution in rayon threads
@VeryBaaad VeryBaaad self-assigned this Apr 20, 2026
@VeryBaaad VeryBaaad added the enhancement New feature or request label Apr 20, 2026
@VeryBaaad VeryBaaad merged commit f087a0b into main Apr 20, 2026
6 checks passed
@VeryBaaad VeryBaaad deleted the feat/dryrun branch April 20, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant