Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Wrong examples #118

Closed Juliehzl closed 4 years ago

Juliehzl commented 4 years ago

The generated examples description are wrong in some cases. For example,

      - name: Get details of a capacity
        text: |-
               az powerbi embedded-capacity delete --resource-group "TestRG" --name "azsdktest"

      - name: Get details of a capacity
        text: |-
               az powerbi embedded-capacity list

The first command is for delete and the second one is for list.

changlong-liu commented 4 years ago

Have just implemented this example generation in _help.py. And the example descriptions in _help.py are come from the swagger example, if it's wrong it should be a mistake in swagger example.