PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

`Uninstall-PSResource` should take `Version` from `ValueFromPipelineByPropertyName`

Open SeeminglyScience opened this issue 3 years ago • 1 comments

Summary of the new feature / enhancement

As a user I want to be able to pipe Get-InstalledPSResource SomeModule to Uninstall-PSResource.

Currently if you try to pipe a single version to Unisntall-PSResource it will try to uninstall all of them:

image

Using Uninstall-PSResource -Name SomeModule -Version 2.0.0 works, but should be pipeable ideally.

Proposed technical implementation details (optional)

No response

SeeminglyScience avatar Apr 04 '22 19:04 SeeminglyScience

Thanks @SeeminglyScience looks like this is an issue we thought we addressed in preview 11 but is still an issue

SydneyhSmith avatar Apr 07 '22 18:04 SydneyhSmith

Resolved in https://github.com/PowerShell/PowerShellGet/pull/593

alerickson avatar Aug 30 '22 19:08 alerickson