Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive module preview 2 & 3 #138

Merged
merged 0 commits into from
Aug 16, 2022
Merged

Archive module preview 2 & 3 #138

merged 0 commits into from
Aug 16, 2022

Conversation

ayousuf23
Copy link
Contributor

@ayousuf23 ayousuf23 commented Aug 9, 2022

PR Summary

This PR includes code for the preview 2 release of the Microsoft.PowerShell.Archive v2.0.0 module.

This PR is a rewrite of the Expand-Archive cmdlet in C# (previously, it was written in PowerShell Script). It has support for creating, updating, and overwriting archives. As of now, only zip and zip64 are supported (the .NET APIs for zip and zip64 are the same).

The PR has a -Format parameter which can used to specify the format of the archive. As of now, -Format has only one option: -Format Zip. When additional formats are supported by the module in preview 3, the -Format parameter will be more useful by providing options for tar and compressed tar.

To overwrite the destination path of the archive or items in the archive, use the -WriteMode Overwrite parameter.

For more information regarding behavior of the parameters, please see the RFC #117.

PR Context

To keep the PowerShell/Microsoft.PowerShell.Archive repository up to date with preview 2 code.

@SydneyhSmith
Copy link
Collaborator

Looks like this repo might be missing a change log-- that would be a good thing to add

@ayousuf23
Copy link
Contributor Author

@SydneyhSmith I added the changelog

CHANGELOG.md Outdated
Comment on lines 5 to 10
- Rewrite `Expand-Archive` cmdlet in C#
- Added `-Format` parameter to `Expand-Archive`
- Added `-WriteMode` parameter to `Expand-Archive`
- Added support for zip64
- Fixed a bug where the entry names of files in a directory would not be correct when compressing an archive
- `Compress-Archive` skips writing an entry to an archive if an error occurs while doing so
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The preview.2 change log has duplicate items from preview.1. Can you please clean them up to only contain the new improvements in preview2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daxian-dbw I updated the changelog.

@ayousuf23 ayousuf23 marked this pull request as ready for review August 11, 2022 21:39
@ayousuf23 ayousuf23 changed the title Archive module preview 2 Archive module preview 2 & 3 Aug 16, 2022
@ayousuf23 ayousuf23 merged commit b783599 into PowerShell:master Aug 16, 2022
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.

3 participants