Skip to content

Conversation

cowmanjoe
Copy link
Contributor

@cowmanjoe cowmanjoe commented Dec 30, 2019

This sets the default value of $packageName to $env:chocolateyPackageName for Install-ChocolateyZipPackage and Get-ChocolateyUnzip. This is usually the value used as default in install scripts, so this can reduce the number of necessary parameters specified.

I followed what was stated in the ticket, but thought there might be some more scripts where this could be useful, such as Install-ChocolateyPackage. Should I add the defaults there as well?

Closes #1716

Set default value of packageName to $env:chocolateyPackageName for
Install-ChocolateyZipPackage and Get-ChocolateyUnzip. This is usually
the value used as default in install scripts, so this can reduce the
number of necessary parameters specified.
@cowmanjoe cowmanjoe changed the title (GH-1716) - User chocolateyPackageName as default parameter for packageName (GH-1716) - Use chocolateyPackageName as default parameter for packageName Dec 30, 2019
There were six more scripts using a packageName variable which should have access to the chocolateyPackageName environment variable. This should be used the default value for the packageName for the scripts so that we can reduce the number of necessary arguments.
@cowmanjoe
Copy link
Contributor Author

Closes #1716

@CLAassistant
Copy link

CLAassistant commented Jun 8, 2020

CLA assistant check
All committers have signed the CLA.

@gep13 gep13 changed the title (GH-1716) - Use chocolateyPackageName as default parameter for packageName (#1716) - Use chocolateyPackageName as default parameter for packageName Oct 14, 2021
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.

Make PackageName default to ChocolateyPackageName
2 participants