It's straight forward to prepare the initial readme files for CLI CodeGen which would contains the configuration to customize CodeGen behavior if needed:
Create readme.az.md in the same folder of readme.md and copy following content with the {svcName} replaced with proper name
## AZ
These settings apply only when `--az` is specified on the command line.
``` yaml $(az) && $(target-mode) != 'core'
az:
extensions: {svcName}
namespace: azure.mgmt.{svcName}
package-name: azure-mgmt-{svcName}
az-output-folder: $(azure-cli-extension-folder)/src/{svcName}
python-sdk-output-folder: "$(az-output-folder)/azext_{svcName}/vendored_sdks/{svcName}"
# add additinal configuration here specific for Azure CLI
# refer to the faq.md for more details
```
``` yaml $(az) && $(target-mode) == 'core'
az:
extensions: {svcName}
namespace: azure.mgmt.{svcName}
package-name: azure-mgmt-{svcName}
az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/{serviceFolderName}
python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/{svcName}"
# add additinal configuration here specific for Azure CLI
# refer to the faq.md for more details
```
Create readme.cli.md in the same folder of readme.md with following content. No modification needed.
``` yaml
# add any configuration here for all CLI languages
# refer to the faq.md for more details
```
If your service has released Python SDK, it's likely you already have the file. If not, you can create readme.python.md in the same folder of readme.md and copy following content with {svcName} replaced properly:
## Python
```yaml $(python)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.{svcName}
package-name: azure-mgmt-{svcName}
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/{svcName}/azure-mgmt-{svcName}/azure/mgmt/{svcName}
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/{svcName}/azure-mgmt-{svcName}
```
All readme files should be ready now. You can refer to here to generate your CLI code now if you want.
Feel free to reach to us at [email protected] if you hit any issues or questions.