PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
494 stars 93 forks source link

Fix broken `-Quiet` parameter for `Save-PSResource` #1745

Closed alerickson closed 3 days ago

alerickson commented 3 weeks ago

PR Summary

The -Quiet parameter for Save-PSResource lost the [Parameter] attribute that allows PowerShell to recognize it as a parameter for the cmdlet. This likely got dropped when resolving a merge conflict. This PR adds [Parameter] back in and adds a test that is meant to ensure parameter binding for -Quiet always works for the cmdlet (ie. it does not test functionality of -Quiet).

PR Context

PR Checklist