NuKeeper icon indicating copy to clipboard operation
NuKeeper copied to clipboard

Support json format in `inspect` command

Open rajbos opened this issue 5 years ago • 2 comments

🚀 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)

  • [x] :hammer_and_wrench: NuKeeper CLI
  • [ ] :sparkles: GitHub
  • [ ] :robot: AzureDevops
  • [ ] :checkered_flag: Bitbucket
  • [ ] :earth_americas: Gitlab
  • [ ] :tv: Gitea
  • [ ] :whale: Docker

rajbos avatar Nov 03 '20 12:11 rajbos

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] avatar Feb 01 '21 12:02 stale[bot]

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] avatar Dec 20 '21 06:12 stale[bot]