Request to Add an Option to Provide Winget Output in Dictionary Format #5264
Labels
Issue-Feature
This is a feature request for the Windows Package Manager client.
Resolution-Duplicate
Issue is a duplicate
Description of the new feature / enhancement
Implement an option to output results in a structured dictionary format.
Currently, winget outputs search results in a matrix format suitable for terminal display. By introducing an option to provide output in a structured dictionary format, users can obtain parseable data more easily.
Additional Notes:
This issue highlights three distinct problems observed from the current output behavior.
Related URLs:
Proposed technical implementation details
Expected Behavior:
An option to enable structured dictionary format output.
For example, executing winget search --return-dict softwarename should return output in the following format:
Actual Behavior:
Currently, there is no option to output results in a structured dictionary format.
Reproduction Steps:
execute the following commands in PowerShell:
winget search vivaldi
winget search vivaldi > output.txt
Environment:
OS: Windows 10 (Build 19045)
Winget Version: v1.10.320
PowerShell Version: 5.1.19041.5486
VSCode Version: 1.97.2
Terminal: VSCode Integrated Terminal (PowerShell)
Desired Features/Improvements:
Provide an option to output results in a structured dictionary format for easier parsing.
Example:
winget search --return-dict *softwarename*
The text was updated successfully, but these errors were encountered: