aaronparker / vcredist

Lifecycle management for the Microsoft Visual C++ Redistributables
https://vcredist.com
MIT License
129 stars 18 forks source link

Recommend parameter rename for VcList parameter in any Cmdlet that calls Test-VcListObject #155

Open BronsonMagnan opened 8 months ago

BronsonMagnan commented 8 months ago

Expected Behavior

Because the parameter is named VcList, we expect to be able to supply the output of Get-VcList to the parameter

Current Behavior

The parameter requires the output object of 'Save-VCRedist', which is the same date with an additional property of Path included.

Failure Information (for bugs)

Cmdlets fail on private function Test-VcListObject validator.

Steps to Reproduce

Do what is intuitive

Context

In most PowerShell modules, the standard typically is a Parameter Name that matches the name of a defined Noun in the module, should accept that data type generated by the Get-Noun cmdlet if one is present.

Recommendations

Rename VcList parameter in cmdlets that want the input of Save-VCRedist. Additionally implement a cmdlet that can generate this object array without having to re-download the redists.