Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Install-ChocolateyArchivePackage AKA Install-ChocolateyZipPackage #512

Open
030 opened this issue Jul 9, 2014 · 9 comments
Open

Install-ChocolateyArchivePackage AKA Install-ChocolateyZipPackage #512

030 opened this issue Jul 9, 2014 · 9 comments

Comments

@030
Copy link

030 commented Jul 9, 2014

As discussed in issue (GH-473), due to adding of feature extraction of tar packages to Install-ChocolateyZipPackage and backwards compatibility the alias Install-ChocolateyArchivePackage should be created

@030
Copy link
Author

030 commented Jul 9, 2014

How to create the alias using powershell? Using set-alias in some file? set-alias Install-ChocolateyArchivePackage path/to/Install-ChocolateyArchivePackage.ps1 or function Install-ChocolateyArchivePackage { Install-ChocolateyArchivePackage }?

@030
Copy link
Author

030 commented Jul 10, 2014

alias has been created

@jberezanski
Copy link
Contributor

You created a wrapper function, not an alias. Please see here for a few tips for creating and exporting aliases from PS modules.

@030
Copy link
Author

030 commented Jul 11, 2014

Ok. I will check that Q&A. Thank you.

@030
Copy link
Author

030 commented Jul 11, 2014

Putting set-alias Install-ChocolateyArchivePackage Install-ChocolateyZipPackage at the end of the file solves the issue. I will commit the change ASAP.

@030
Copy link
Author

030 commented Jul 11, 2014

AKA created

@030
Copy link
Author

030 commented Jul 13, 2014

@jberezanski Exporting the alias has been implemented as it became clear during testing that setting an alias was insufficient and exporting is required as well. Thank you for the advice.

@030
Copy link
Author

030 commented Jul 13, 2014

Should a new pull request be created? GH-506 has been created for another feature.

@ferventcoder
Copy link
Contributor

The alias would be part of this work.

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

No branches or pull requests

3 participants