octokit / source-generator

Generates SDKs from GitHub's OpenAPI specification. Built on Kiota.
6 stars 3 forks source link

Use Kiota info command to install required dependencies #17

Closed kfcampbell closed 8 months ago

kfcampbell commented 8 months ago

The Kiota CLI offers an info command that prints the dependencies required to work with a project. source-generator currently installs a fixed set of dependencies that were discovered through trial and error.

The info command will keep up with future changes to dependencies, so we should parse the output of that to install required packages instead of going the hard-coded route.

baywet commented 8 months ago

FYI thanks to @andreaTP 's work, this command now supports a --json to output the result as JSON and for machine processing.