Skip to content

Create #292 - winget should install an app if there is an exact match.md - #358

Merged
Demitrius Nelon (denelon) merged 2 commits into
microsoft:masterfrom
denelon:denelon-292
May 29, 2020
Merged

Demitrius Nelon (denelon) merged 2 commits into
microsoft:masterfrom
denelon:denelon-292

Conversation

@denelon

@denelon Demitrius Nelon (denelon) commented May 29, 2020 •

Copy link
Copy Markdown
Collaborator
Microsoft Reviewers: Open in CodeFlow

@denelon
Demitrius Nelon (denelon) marked this pull request as ready for review May 29, 2020 00:12
@denelon
Demitrius Nelon (denelon) requested a review from a team as a code owner May 29, 2020 00:12

The winget.exe client attempts to be generous with the `search` command, but is a bit too generous with `install`. The *id*
should be the unique key to identifying a package. It should also be case insensitve from the perspective of command execution,
but it should be case sensitive in terms of the displayed value.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you try rephrasing it should be case sensitive in terms of the displayed value. - do you mean that it's expected to display the original casing used in the manifest instead of a (lowercase, camelCase, PascalCase) formatted string?


There are changes to how results should displayed to reduce the liklihood of a user mistakenly assuming the "Name" is a key value
for a package. The client commands should be case insensitive, but the display should still be case sensitive to support ease of
reading. Long names can be easier to understand when presnted in camel case, pascal case, or with a branded letter casing.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: presented


## Future considerations

There are changes to how results should displayed to reduce the liklihood of a user mistakenly assuming the "Name" is a key value

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: likelihood

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More sleep reduces mistakes... Maybe an IDE with a spell check wouldn't hurt.

## Abstract

The winget.exe client attempts to be generous with the `search` command, but is a bit too generous with `install`. The *id*
should be the unique key to identifying a package. It should also be case insensitve from the perspective of command execution,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version should play a roll in identifying a package. We can default to a specific version where this is concerned, but we should keep it in mind as we move forward.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will call version out.

@megamorf

Copy link
Copy Markdown

Looks good to me 👍

@denelon
Demitrius Nelon (denelon) merged commit 8790f81 into microsoft:master May 29, 2020
@denelon
Demitrius Nelon (denelon) deleted the denelon-292 branch October 16, 2020 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

winget should install an app if there is an exact match (eg 'git')

3 participants