Skip to content

feat: add -DryRun flag for preview-only mode #1

Description

@Diwak4r

Overview

Add a -DryRun switch parameter that scans all target paths and reports what WOULD be cleaned and how much space WOULD be freed, without deleting anything.

Implementation

  1. Add [switch] DryRun to the param() block
  2. In Remove-FolderContents and Remove-PathContents, skip Remove-Item when DryRun is set
  3. Change Write-Status prefix to [DRY] in dry-run mode
  4. Update summary to say Estimated space savings
  5. Update Show-Banner to show a yellow DRY RUN MODE indicator

Effort

~30 minutes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions