microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.35k stars 1.45k forks source link

Add `winget hash` to PowerShell Module #4273

Open Trenly opened 8 months ago

Trenly commented 8 months ago

Description of the new feature / enhancement

There should be parity between the PowerShell module and the client

Proposed technical implementation details

No response

denelon commented 8 months ago

I'm not sure this adds much value given the availability of [Get-FileHash].(https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.4). It might be worth building a wrapper to pass the SHA256 algorithm though just to save some typing.

Trenly commented 8 months ago

I'm not sure this adds much value given the availability of [Get-FileHash].(learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.4). It might be worth building a wrapper to pass the SHA256 algorithm though just to save some typing.

One advantage of winget hash is the --msix parameter which will get the hash of the signature file as well