Skip to content
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

Add nuget.org information for dependencies #1

Open
damageboy opened this issue Jul 4, 2018 · 4 comments
Open

Add nuget.org information for dependencies #1

damageboy opened this issue Jul 4, 2018 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@damageboy
Copy link

Would be nice to use the nuget repository for the discovered dependencies to figure out display stuff like:

  • Latest Version (outdated packages)
  • Short descriptions of the nuget dependency
@bjorkstromm bjorkstromm added the help wanted Extra attention is needed label Aug 7, 2019
@NikiforovAll
Copy link

I really like this project and would like to contribute. Could we come up with a more detailed specification for this issue so I could try my best to implement it?

@bjorkstromm
Copy link
Owner

@NikiforovAll thanks! Any thoughts on how you would like to implement this? One could just be as simple as opening the package over at nuget.org. Another would be to download the package metadata from the registration URL (https://docs.microsoft.com/en-us/nuget/api/registration-base-url-resource) and display it in a dialogue.

@NikiforovAll
Copy link

I think the main goal is to be able to peak at NuGet package without leaving the terminal.

Here is my take on it:

What

We could show next information:

  • items.items[:latest:].description // this gives as latest description of the package
  • items.items[:top5:].catalogEntry.version // latest 5 packages information
  • items.upper: "3.4.1"
  • items.lower: "3.0.0-beta"
  • 🔗 hyperlink to nuget.org (if relevant). Since Windows Terminal 1.4 supports hyperlinks, this would be nice addition.

E.g. https://api.nuget.org/v3/registration3/nuget.server.core/index.json

How

I think we could add another layout that could be toggled when the current dependency comes from NuGet.

image

@bjorkstromm
Copy link
Owner

@NikiforovAll sounds like you have a great plan! 👍 looking forward to your PR.

Please note we already have a dependency on the NuGet Client libs, so we can easily use the PackageMetadataResource in order to get registration info. More info here https://daveaglick.com/posts/exploring-the-nuget-v3-libraries-part-2 Here also some usage on NuGet Client libs inside Depends https://github.com/mholo65/depends/blob/master/src/Depends.Core/DependencyAnalyzer.cs#L42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants