microsoft / microsoft/winget-cli

PowerShell module commands missing Exact switch

Open
#3,809 3 comments 0 reactions 1 assignee View on GitHub

@ryfu-msft is already working on this.

Since Oct 25, 2023.

Issue-Docs
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

When using the PowerShell module, the -Exact switch is missing / doesn't work. There is no tab completion for the switch and adding it to the command generates no errors or results.

Attempted to use multiple versions of the module and PowerShell hosts on multiple computers.

The equivalent command line commands work. (e.g. winget search --id Microsoft.WindowsTerminal --exact)

Microsoft.WindowsTerminal is only for demonstration purposes, the same result is produced reagardless of the package Id used.

Steps to reproduce

Start pwsh.exe

Install-Module -Name Microsoft.WinGet.Client
Find-WinGetPackage -Id Microsoft.WindowsTerminal -Exact
Expected behavior

I would expect the latest version of the package with the exact case sensitive name of Microsoft.WindowsTerminal to be returned.

Actual behavior

No output or errors.

Environment
OS: Windows 10 22H2 (Enterprise)

PowerShell Hosts:
PowerShell 7.3.8 (x64)
PowerShell 7.2.6 (x64)

Microsoft.WinGet.Client Module Versions:
0.2.2
0.2.1
0.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.