winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c5d0af525225ecc6871dc797cf0f303a8266d2c4
parent f14909aba2578b0b8b57cb700ffcdeddb196f878
Author: Kaleb Luedtke <jluedtk@jci.com>
Date:   Tue, 21 Jun 2022 14:09:01 -0500

Feat: Show package tags (#2235)


Diffstat:
Msrc/AppInstallerCLICore/Resources.h | 1+
Msrc/AppInstallerCLICore/Workflows/ShowFlow.cpp | 9+++++++++
Msrc/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw | 3+++
3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/AppInstallerCLICore/Resources.h b/src/AppInstallerCLICore/Resources.h @@ -282,6 +282,7 @@ namespace AppInstaller::CLI::Resource WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelPublisherUrl); WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelReleaseNotes); WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelReleaseNotesUrl); + WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelTags); WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelVersion); WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelWindowsFeaturesDependencies); WINGET_DEFINE_RESOURCE_STRINGID(ShowLabelWindowsLibrariesDependencies); diff --git a/src/AppInstallerCLICore/Workflows/ShowFlow.cpp b/src/AppInstallerCLICore/Workflows/ShowFlow.cpp @@ -113,6 +113,15 @@ namespace AppInstaller::CLI::Workflow } } } + const auto& tags = manifest.CurrentLocalization.Get<Manifest::Localization::Tags>(); + if (!tags.empty()) + { + context.Reporter.Info() << Execution::ManifestInfoEmphasis << Resource::String::ShowLabelTags << std::endl; + for (const auto& tag : tags) + { + info << " "_liv << tag << std::endl; + } + } const auto& agreements = manifest.CurrentLocalization.Get<Manifest::Localization::Agreements>(); if (!agreements.empty()) { diff --git a/src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw b/src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw @@ -1060,6 +1060,9 @@ Do you agree to the terms?</value> <data name="ShowLabelPublisher" xml:space="preserve"> <value>Publisher:</value> </data> + <data name="ShowLabelTags" xml:space="preserve"> + <value>Tags:</value> + </data> <data name="ShowLabelVersion" xml:space="preserve"> <value>Version:</value> </data>