winget-cli

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

commit 88ad8f6ebdaee2e7e3e3ae3b0d7057f6b5a43df8
parent 0953ed2ef5f2353c8460d470fbae9619b76a9a0e
Author: yao-msft <50888816+yao-msft@users.noreply.github.com>
Date:   Fri,  1 May 2020 17:27:24 -0700

Add Publisher and License to show command output (#98)


Diffstat:
Msrc/AppInstallerCLICore/Workflows/ShowFlow.cpp | 24+++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/AppInstallerCLICore/Workflows/ShowFlow.cpp b/src/AppInstallerCLICore/Workflows/ShowFlow.cpp @@ -19,20 +19,22 @@ namespace AppInstaller::CLI::Workflow auto selectedLocalization = manifestComparator.GetPreferredLocalization(manifest); // TODO: Come up with a prettier format - context.Reporter.Info() << "Version: " + manifest.Version << std::endl; - context.Reporter.Info() << "Author: " + manifest.Author << std::endl; - context.Reporter.Info() << "AppMoniker: " + manifest.AppMoniker << std::endl; - context.Reporter.Info() << "Description: " + selectedLocalization.Description << std::endl; - context.Reporter.Info() << "Homepage: " + selectedLocalization.Homepage << std::endl; - context.Reporter.Info() << "License: " + selectedLocalization.LicenseUrl << std::endl; - + context.Reporter.Info() << "Version: " << manifest.Version << std::endl; + context.Reporter.Info() << "Author: " << manifest.Author << std::endl; + context.Reporter.Info() << "Publisher: " << manifest.Publisher << std::endl; + context.Reporter.Info() << "AppMoniker: " << manifest.AppMoniker << std::endl; + context.Reporter.Info() << "Description: " << selectedLocalization.Description << std::endl; + context.Reporter.Info() << "Homepage: " << selectedLocalization.Homepage << std::endl; + context.Reporter.Info() << "License: " << manifest.License << std::endl; + context.Reporter.Info() << "License Url: " << selectedLocalization.LicenseUrl << std::endl; context.Reporter.Info() << "Installer:" << std::endl; + if (installer) { - context.Reporter.Info() << " Language: " + installer->Language << std::endl; - context.Reporter.Info() << " SHA256: " + Utility::SHA256::ConvertToString(installer->Sha256) << std::endl; - context.Reporter.Info() << " Download Url: " + installer->Url << std::endl; - context.Reporter.Info() << " Type: " + Manifest::ManifestInstaller::InstallerTypeToString(installer->InstallerType) << std::endl; + context.Reporter.Info() << " Language: " << installer->Language << std::endl; + context.Reporter.Info() << " SHA256: " << Utility::SHA256::ConvertToString(installer->Sha256) << std::endl; + context.Reporter.Info() << " Download Url: " << installer->Url << std::endl; + context.Reporter.Info() << " Type: " << Manifest::ManifestInstaller::InstallerTypeToString(installer->InstallerType) << std::endl; } else {