[PR #7] feat: Enhance Docker cleanup script #12

Closed
opened 2025-11-20 04:14:17 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/bigbeartechworld/big-bear-scripts/pull/7

State: closed
Merged: Yes


This commit introduces several improvements to the Docker cleanup script:

  • Adds a verbose mode to print detailed messages during the cleanup process.
  • Implements a dry run mode to simulate the cleanup without actually removing any resources.
  • Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output.
  • Adds a summary of the cleanup results at the end of the script.
  • Includes a help message to explain the available options.
  • Refactors the script to improve readability and maintainability.

The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution.

Summary by CodeRabbit

  • New Features

    • Introduced -v/--verbose option for detailed output.
    • Added -d/--dry-run option to simulate actions without execution.
    • New summary function to report on cleanup actions performed.
  • Improvements

    • Enhanced user interaction with confirmation prompts and clearer feedback.
    • Restructured main entry point for better command-line argument handling.
**Original Pull Request:** https://github.com/bigbeartechworld/big-bear-scripts/pull/7 **State:** closed **Merged:** Yes --- This commit introduces several improvements to the Docker cleanup script: - Adds a verbose mode to print detailed messages during the cleanup process. - Implements a dry run mode to simulate the cleanup without actually removing any resources. - Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output. - Adds a summary of the cleanup results at the end of the script. - Includes a help message to explain the available options. - Refactors the script to improve readability and maintainability. The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced `-v/--verbose` option for detailed output. - Added `-d/--dry-run` option to simulate actions without execution. - New summary function to report on cleanup actions performed. - **Improvements** - Enhanced user interaction with confirmation prompts and clearer feedback. - Restructured main entry point for better command-line argument handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
saavagebueno added the pull-request label 2025-11-20 04:14:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#12