How to add a new module for azure cli
To add a new module for azure cli, there are three requirements:
- Add source code for module.
- Add _help.py for module.
- Add mapping for document and source code.
Add source code for module
The modules are listed in command_modules folder. Add your new module into this folder like other modules.
Add _help.py for module
_help.py must be included in your new module. You could refer to the _help.py of azure iot as reference.
Add mapping for document and source code
_help.py is added, go to doc_source_map.json to add the mapping for document and source code. Refer to azure iot as example:
Where to add metadata for azure cli
The config for the metadata is in docfx.json