NuKeeperDotNet / NuKeeper

Automagically update nuget packages in .NET projects
Apache License 2.0
541 stars 127 forks source link

Support json format in `inspect` command #1052

Open rajbos opened 3 years ago

rajbos commented 3 years ago

šŸš€ Feature Requests

Support json format in the inspect command for easier usage from the commandline. I was targeting an on-prem GitLab server and could not use the build in creation of the merge request with it. Therefor had to figure out a way of checking for updates, creating a branch and the merge request my self (read more here. With json output this would be easier (and I could use the information in it for a better commit message as a bonus).

Contextualize the feature

This would be an extra formatter for the inspect command in the CLI.

Describe the feature

From the code base, a new IReportFormat would be needed in the NuKeeper.Inspection project and parse it from the commandline. With that formatter we have all the options to set things up. I'd think a data structure that would give all the information needed would be something like this:

{
  "Information": 
  {
    "Updates": 0
  },
  {
    "Packages": 
     [
         {
           "title": "title of the package",
           "version in use", "1.4.0.1",
           "upgrade available": "1.4.4.0"
         }
     ]
  }
}

Platforms affected (mark all that apply)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.