Skip to content

feat: aggiungi funzionalità di decompressione e supporto per file ZIP cifrati#3

Merged
moris88 merged 3 commits into
mainfrom
feat-decomprime
Apr 23, 2026
Merged

feat: aggiungi funzionalità di decompressione e supporto per file ZIP cifrati#3
moris88 merged 3 commits into
mainfrom
feat-decomprime

Conversation

@moris88

@moris88 moris88 commented Apr 23, 2026

Copy link
Copy Markdown
Owner

This pull request adds decompression (extraction) support with password protection to the backup CLI, allowing users to both create and extract encrypted ZIP archives interactively. It also updates documentation and dependencies to reflect these new capabilities. The most important changes are grouped below:

Feature Enhancements:

  • Added extraction functionality: Users can now select and extract encrypted ZIP backups via a new interactive menu option, including password entry and extraction to a new folder. (src/main.ts, src/utils/utils.ts, tests/utils.test.ts) [1] [2] [3]
  • Updated the main script to present a menu for choosing between compression (backup creation) and decompression (extraction), making the CLI more user-friendly and versatile. (src/main.ts)

Dependency Updates:

  • Added adm-zip and its type definitions as dependencies for robust ZIP file extraction with password support. (package.json, pnpm-lock.yaml) [1] [2] [3] [4] [5] [6] [7]

Documentation Updates:

  • Expanded the README.md (both English and Italian sections) to document the new extraction features, menu changes, and the use of adm-zip. Also clarified the role of src/main.ts and removed outdated instructions about a minified start script. (README.md) [1] [2] [3] [4] [5] [6] [7] [8]

Testing:

  • Added unit tests for the new filterZipFiles utility function to ensure correct ZIP file detection. (tests/utils.test.ts)

These updates make the CLI a complete solution for both creating and securely extracting project backups.

@moris88 moris88 self-assigned this Apr 23, 2026
@moris88 moris88 merged commit 122523e into main Apr 23, 2026
1 check passed
@moris88 moris88 deleted the feat-decomprime branch April 23, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant