NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.55k stars 643 forks source link

[Feature]: Shift Click to copy "Update" command #8861

Open theolivenbaum opened 3 years ago

theolivenbaum commented 3 years ago

NuGet Product(s) Involved

dotnet.exe

The Elevator Pitch

I often need to update CLI tools, and I use the nuget.org website to get the command for installing the tool using dotnet. Unfortunately the command is using the dotnet verb "install" instead of "update", which means it fails if the tool is already installed but in another version. It would be great if we could shift click the copy button to get the "update" verb copied instead.

image

Additional Context and Details

No response

agr commented 3 years ago

Genereally, I like the idea, except Shift-clicking is a bit hard to discover without prior knowledge.

Another approach would be to make dotnet tool install to behave like dotnet tool update if a tool already exists (dotnet add package already behaves that way). @KathleenDollard, @marcpopMSFT - do you have any input about it?