Azure / azure-cli-dev-tools

Developer utilities for Azure CLI command module and extension developers.
MIT License
79 stars 113 forks source link

azdev extension/cli create -- additional functionality #108

Open zikalino opened 5 years ago

zikalino commented 5 years ago

So this is a proposal to add new parameters to the command:

--autorest-input-file (json or md file within locally cloned azure-rest-api-specs)

If the parameter is added, azdev would run following docker command:

docker run -ti -v azure-rest-api-specs-folder:/azure-rest-api-specs -v output-folder:/generated zikalino/autorest.devops /azure-rest-api-specs/path-to-md-file.md azdev

The command will produce following files in output-folder:

These files can be used to replace scaffolded files with complete prototype implementation of command module.

zikalino commented 5 years ago

@tjprescott @yugangw-msft do you have any comments?

tjprescott commented 5 years ago

@zikalino if I understand correctly, this would simply wrap the autorest generation of the SDK? Or are you talking about generating the code purely from analysis of the swagger? If it is the first option, I think that would make a lot of sense.