Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Add Tar support to PowerShell with the new .NET 7.0 APIs #116

Closed
carlossanlop opened this issue Jun 9, 2022 · 3 comments · May be fixed by #140
Closed

Add Tar support to PowerShell with the new .NET 7.0 APIs #116

carlossanlop opened this issue Jun 9, 2022 · 3 comments · May be fixed by #140

Comments

@carlossanlop
Copy link

carlossanlop commented Jun 9, 2022

Summary of the new feature / enhancement

I am working on adding new Tar APIs in .NET 7.0: https://docs.microsoft.com/en-us/dotnet/api/system.formats.tar?view=net-7.0

It would be great if we could offer Cmdlets in PowerShell for these APIs, both for archiving (*.tar) and for archiving + compressing (*.tar.gz).

How can I help to make this happen?

@SteveL-MSFT @iSazonov

Proposed technical implementation details (optional)

Here is a detailed explanation of how the APIs can be used as of .NET 7.0 Preview 4: dotnet/core#7378 (comment)

Note: There will be some minor API changes in the next Previews, but most of the functionality is like in the linked comment.

Known bugs

I created this uber issue to track pending feedback to address: dotnet/runtime#68230

@iSazonov
Copy link

iSazonov commented Jun 9, 2022

I am working on adding new Tar APIs in .NET 7.0

Is the API already in current public 7.0 Preview?


  1. PowerShell MSFT team policy is to develop new cmdlets in separate community modules shared on PowerShellGet site. So first you need to discuss with them whether they want to have the cmdlets under PowerShell team umbrella.
  2. We already have Microsoft.PowerShell.Archive module. Perhaps it could be best module to place new cmdlets but it is for Windows PowerShell and it is not binary.
  3. Also current policy is to create RFC for new cmdlets in PowerShell-RFC repository.

@iSazonov
Copy link

iSazonov commented Jun 9, 2022

I see we already on 7.0 Preview4 and there already is System.Formats.Tar.

@SteveL-MSFT SteveL-MSFT transferred this issue from PowerShell/PowerShell Jun 9, 2022
@SteveL-MSFT
Copy link
Member

@carlossanlop we've planning on rewriting the Archive module and likely leveraging the new .NET 7 APIs and adding tar support

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants