-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove duplicated message when no upgrades #1986
Conversation
/azp run |
Commenter does not have sufficient privileges for PR 1986 in repo microsoft/winget-cli |
@@ -759,7 +759,12 @@ namespace AppInstaller::CLI::Workflow | |||
|
|||
if (table.IsEmpty()) | |||
{ | |||
context.Reporter.Info() << Resource::String::NoInstalledPackageFound << std::endl; | |||
if (m_onlyShowUpgrades) { | |||
context.Reporter.Info() << Resource::String::UpdateNotApplicable << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want to differentiate "app not installed" vs "update not applicable". This change seems ok with winget upgrade --all
, but we want clearer message for winget upgrade <specific package>
If we want to avoid showing "app not installed" for winget upgrade --all
, it would be done as not triggering this reporting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I restored the original message, but at least removed the duplication. What do you think?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This is kind of a follow up of #1982, continuing the cleanup. But this is a bit different because it also changes one message.
This is how it was before:
This is how it is now:
Please let me know what you think.
Microsoft Reviewers: Open in CodeFlow