You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
I'd think Expand-Archive is one of the heavily used cmdlets in various installation scripts. But currently you still need to do a lot of unnecessary things like:
save temp archive file
remove temp archive
[in some cases] move files from the root catalog to some other folder
Also, it doesn't work with tarballs (big deal for linux)
I think we should make Expand-Archive to pull archive directly from url avoiding writing/removing stuff on your disc. I guess that is not that hard to build some custom cmdlet, but I believe this should come out of the box, so installation script can rely on it.
Example:
I need nodejs binaries in my project. I want to put this in "node" subfolder (but not in something like node-v10.16.3-linux-x64 ). In bash this could be achived this way:
I think many other core cmdlets with -Path parameter would benefit from such thing too. Maybe we can make Path to understand paths with http:// prefix.
The text was updated successfully, but these errors were encountered:
Maybe if Expand-Archive support pipeline, we can get the desired result: "extract archive without first saving to filesystem". Inspired by Unix-y tools:
URL=https://github.com/dotnet/docs/archive/master.tar.gz
# wget
wget -qO- $URL| tar -xvz > /dev/null
# curl
curl -sSL $URL| tar -xvz > /dev/null
It'd also be great to tell it to ignore the file extension check too. Sometimes I have a file that's a zip file, but not actually labeled ".zip" so I have to rename it first before sending it to Expand-Archive.
Summary
I'd think Expand-Archive is one of the heavily used cmdlets in various installation scripts. But currently you still need to do a lot of unnecessary things like:
I think we should make Expand-Archive to pull archive directly from url avoiding writing/removing stuff on your disc. I guess that is not that hard to build some custom cmdlet, but I believe this should come out of the box, so installation script can rely on it.
Example:
I need nodejs binaries in my project. I want to put this in "node" subfolder (but not in something like node-v10.16.3-linux-x64 ). In bash this could be achived this way:
Desired powershell functionality:
I think many other core cmdlets with -Path parameter would benefit from such thing too. Maybe we can make Path to understand paths with http:// prefix.
The text was updated successfully, but these errors were encountered: