Skip to content

feat: enhance CLI functionality and improve test coverage - #126

Merged
msclock merged 19 commits into
masterfrom
msclock/cli-enhance
Oct 15, 2026
Merged

msclock merged 19 commits into
masterfrom
msclock/cli-enhance

Conversation

@msclock

@msclock msclock commented Oct 14, 2026

Copy link
Copy Markdown
Owner
  • Added new command-line options for compression, including:

    • --store-open-files: Compress files that are open by other processes.
    • --exclude: Exclude files matching wildcard patterns during compression.
    • --stdin: Read input data from stdin for compression.
    • --delete-after: Delete source files after successful compression.
    • --format-property: Set raw 7z format properties.
    • --show-files: Log each file as it is processed.
    • --ratio: Show compression ratio during progress.
  • Improved error handling for missing output and input paths.

  • Updated tests to cover new CLI options and ensure proper functionality.

  • Refactored test cases to use a helper function for running CLI commands.

  • Enhanced test coverage for various compression scenarios, including:

    • Different formats and compression levels.
    • Handling of password protection and encrypted headers.
    • Validating exclusion patterns and delete-after functionality.

- Added new command-line options for compression, including:
  - `--store-open-files`: Compress files that are open by other processes.
  - `--exclude`: Exclude files matching wildcard patterns during compression.
  - `--stdin`: Read input data from stdin for compression.
  - `--delete-after`: Delete source files after successful compression.
  - `--format-property`: Set raw 7z format properties.
  - `--show-files`: Log each file as it is processed.
  - `--ratio`: Show compression ratio during progress.

- Improved error handling for missing output and input paths.
- Updated tests to cover new CLI options and ensure proper functionality.
- Refactored test cases to use a helper function for running CLI commands.
- Enhanced test coverage for various compression scenarios, including:
  - Different formats and compression levels.
  - Handling of password protection and encrypted headers.
  - Validating exclusion patterns and delete-after functionality.
@msclock
msclock enabled auto-merge (squash) October 14, 2026 20:25
@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 401 lines in your changes missing coverage. Please review.
✅ Project coverage is 4.21%. Comparing base (a15cc31) to head (ad45de4).

Files with missing lines Patch % Lines
src/pybit7z/cli.py 0.00% 401 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #126       +/-   ##
==========================================
- Coverage   25.00%   4.21%   -20.79%     
==========================================
  Files           2       2               
  Lines          76     451      +375     
==========================================
  Hits           19      19               
- Misses         57     432      +375     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@msclock
msclock disabled auto-merge October 15, 2026 06:46
Removed unnecessary URL from documentation comment.
Updated documentation to include a link to 7-zip method switches.
@msclock
msclock enabled auto-merge (squash) October 15, 2026 06:53
@msclock
msclock merged commit ba09efd into master Oct 15, 2026
26 of 27 checks passed
@msclock
msclock deleted the msclock/cli-enhance branch October 15, 2026 07:19
@msclock-bot

msclock-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@msclock-bot msclock-bot Bot added the released label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant