Details output option for list#5939
Conversation
| return; | ||
| } | ||
|
|
||
| auto lines = Split(value, '\n'); |
There was a problem hiding this comment.
Why not just call the version that takes a container after this?
|
I'm finding that |
|
|
Totally makes sense. Chatted with Demitrius - sorry to randomize you John! |
|
💔 # winget list --details -e 'dotPDN.PaintDotNet'
Paint.NET [dotPDN.PaintDotNet]
Version: 5.1.12
Publisher: dotPDN LLC
Local Identifier: ARP\Machine\X64\{B33D3774-REDACTED}
Product Code: {b33d3774-REDACTED}
Upgrade Code: {04a40f40-REDACTED}
Installer Category: msi
Installed Scope: Machine
Installed Architecture: X64
Installed Locale: en-US
Origin Source: winget |
@eabase If you run |

Change
The new experimental feature
listDetailsenables a new option for thelistcommand,--details. When supplied, the output is no longer a table view of the results but is instead a series ofshowlike outputs drawing data from the installed item.An example output for a single installed package is:
When there are multiple results, the identity line is prefixed with the standard
(N/M)format string used in multi-package operations elsewhere.If sixels are enabled and supported by the terminal, an icon for the installed package will be shown. This currently models the mechanism used by winget-pkgs to extract the icons and by the
showcommand to select the appropriate one to display. It is using the same code in the same manner and should be representative of what would be shown to the user if it were doing the full round trip through the repository/cache/showcommand.