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

The search result of the package should be “totalDownloads” instead of “total downloads” when executing command “dotnet package search <Package Name> --format json” #13165

Closed
jebriede opened this issue Jan 17, 2024 · 0 comments · Fixed by NuGet/NuGet.Client#5602
Assignees
Labels
Functionality:Search Priority:2 Issues for the current backlog. Type:Bug
Milestone

Comments

@jebriede
Copy link
Contributor

NuGet Product Used

dotnet.exe

Product Version

.NET SDK 9.0.100-alpha.1.24062.11

Worked before?

N/A

Impact

It bothers me. A fix would be nice

Repro Steps & Context

.\dotnet.exe package search <package_name> --format json
(also repros with --exact-match)

The json output of the dotnet package search should have total downloads be a single word, rather than two words with a space. This would allow accessing the property with dot notation rather than having to rely on deferencing the parsed json with brackets.

This issue occurs both when running with and without the --exact-match flag.

Expected:
output would have "totalDownloads", "total_downloads" or something similar, that is a single word.

Actual:
image

Verbose Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Search Priority:2 Issues for the current backlog. Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants